Added LN log functions
This commit is contained in:
parent
345af0b53f
commit
f893e26a01
16
slog.go
16
slog.go
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue