Added LN log functions

This commit is contained in:
Matthias Fulz 2020-07-06 01:23:10 +02:00
parent 345af0b53f
commit f893e26a01
1 changed files with 16 additions and 0 deletions

16
slog.go
View File

@ -101,18 +101,34 @@ func LOG_ERROR(format string, a ...interface{}) {
defaultSLog.log(ERROR, format, a...)
}
func LOG_ERRORLN(format string, a ...interface{}) {
defaultSLog.log(ERROR, fmt.Sprintf(format+"\n", a...))
}
func LOG_WARN(format string, a ...interface{}) {
defaultSLog.log(WARN, format, a...)
}
func LOG_WARNLN(format string, a ...interface{}) {
defaultSLog.log(WARN, fmt.Sprintf(format+"\n", a...))
}
func LOG_INFO(format string, a ...interface{}) {
defaultSLog.log(INFO, format, a...)
}
func LOG_INFOLN(format string, a ...interface{}) {
defaultSLog.log(INFO, fmt.Sprintf(format+"\n", a...))
}
func LOG_DEBUG(format string, a ...interface{}) {
defaultSLog.log(DEBUG, format, a...)
}
func LOG_DEBUGLN(format string, a ...interface{}) {
defaultSLog.log(DEBUG, fmt.Sprintf(format+"\n", a...))
}
func SET_LEVEL(level SLogLevel) {
defaultSLog.SetLevel(level)
}