Update log.go (#1976)
change nlog.DefaultLogger.Log to nlog.DefaultLogger.Logf in the Logf function
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user