set stacklevel
This commit is contained in:
parent
9818da5c38
commit
1d48dfc68b
5
log.go
5
log.go
|
@ -4,6 +4,7 @@ import (
|
|||
"fmt"
|
||||
"github.com/cihub/seelog"
|
||||
)
|
||||
|
||||
//var logger seelog.LoggerInterface
|
||||
|
||||
func LoadLogConfig(path string) error {
|
||||
|
@ -21,7 +22,7 @@ func LoadLogConfig(path string) error {
|
|||
}
|
||||
|
||||
seelog.ReplaceLogger(logger)
|
||||
|
||||
seelog.Current.SetAdditionalStackDepth(1)
|
||||
return err
|
||||
}
|
||||
|
||||
|
@ -44,7 +45,6 @@ func Criticalf(format string, params ...interface{}) {
|
|||
seelog.Criticalf(format, params)
|
||||
}
|
||||
|
||||
|
||||
//func Fatalf(format string, params ...interface{}) {
|
||||
// seelog.Criticalf(format, params)
|
||||
// os.Exit(1)
|
||||
|
@ -82,4 +82,3 @@ func Critical(v ...interface{}) {
|
|||
func Flush() {
|
||||
seelog.Flush()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user