go-lib icon indicating copy to clipboard operation
go-lib copied to clipboard

cant not print function line?

Open songlong opened this issue 6 years ago • 3 comments

hi: how to print function line when running? Now I can see [10/18/19 15:35:43] [INFO] msg: 99 but I can get running line

songlong avatar Oct 18 '19 07:10 songlong

_, file, line, ok = runtime.Caller(calldepth)

wongoo avatar Oct 18 '19 09:10 wongoo

I found it can print in file but cant not print console(stdout) it is different in log4go?

songlong avatar Oct 18 '19 15:10 songlong

console print: [10/18/19 23:02:33] [INFO] kakaManageApi[version:1.0] start

log file: [2019/10/18 16:01:59 CST] [INFO] [3576] (kakaManageApi/log.InitLogger:31) kakaManageApi[version:1.0] start

songlong avatar Oct 18 '19 15:10 songlong