Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cant not print function line? #1

Open
songlong opened this issue Oct 18, 2019 · 3 comments
Open

cant not print function line? #1

songlong opened this issue Oct 18, 2019 · 3 comments

Comments

@songlong
Copy link

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

@wongoo
Copy link

wongoo commented Oct 18, 2019

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

@songlong
Copy link
Author

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

@songlong
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants