go-lib
go-lib copied to clipboard
cant not print function line?
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
_, file, line, ok = runtime.Caller(calldepth)
I found it can print in file but cant not print console(stdout) it is different in log4go?
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