Update log.go (#1976)
change nlog.DefaultLogger.Log to nlog.DefaultLogger.Logf in the Logf function
This commit is contained in:
parent
6e30b53280
commit
84f52fd7ac
@ -117,7 +117,7 @@ func Logf(format string, v ...interface{}) {
|
|||||||
if len(prefix) > 0 {
|
if len(prefix) > 0 {
|
||||||
format = prefix + " " + format
|
format = prefix + " " + format
|
||||||
}
|
}
|
||||||
nlog.DefaultLogger.Log(levelToLevel(level), format, v)
|
nlog.DefaultLogger.Logf(levelToLevel(level), format, v)
|
||||||
}
|
}
|
||||||
|
|
||||||
// WithLevel logs with the level specified
|
// WithLevel logs with the level specified
|
||||||
|
Loading…
Reference in New Issue
Block a user