mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 14:50:55 +00:00
split the file for logs
This commit is contained in:
parent
ef3c7c127b
commit
90a7ce5c6a
@ -155,7 +155,7 @@ func (bl *BeeLogger) writerMsg(loglevel int, msg string) error {
|
||||
lm.level = loglevel
|
||||
if bl.enableFuncCallDepth {
|
||||
_, file, line, ok := runtime.Caller(bl.loggerFuncCallDepth)
|
||||
if file == "log.go" && line == 97 {
|
||||
if _, filename := path.Split(file); filename == "log.go" && line == 97 {
|
||||
_, file, line, ok = runtime.Caller(bl.loggerFuncCallDepth + 1)
|
||||
}
|
||||
if ok {
|
||||
|
Loading…
Reference in New Issue
Block a user