Update log.go (#1976)

change nlog.DefaultLogger.Log to nlog.DefaultLogger.Logf in the Logf function
This commit is contained in:
dy1006 2020-08-31 14:18:55 +08:00 committed by GitHub
parent 6e30b53280
commit 84f52fd7ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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