优化日志代码

This commit is contained in:
duanhf2012
2020-04-01 18:49:32 +08:00
parent 004512234f
commit bcccf50956

View File

@@ -123,7 +123,7 @@ func (logger *Logger) Fatal(format string, a ...interface{}) {
logger.doPrintf(fatalLevel, printFatalLevel, format, a...)
}
var gLogger, _ = New("debug", "", log.LstdFlags)
var gLogger, _ = New("debug", "", log.LstdFlags|log.Lshortfile)
// It's dangerous to call the method on logging
func Export(logger *Logger) {