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

Default logger doesn't print log level. #1649

Closed
arvenil opened this issue Oct 2, 2020 · 1 comment
Closed

Default logger doesn't print log level. #1649

arvenil opened this issue Oct 2, 2020 · 1 comment

Comments

@arvenil
Copy link

arvenil commented Oct 2, 2020

Issue Description

I'm using middleware.Logger() and sometimes in the app log.Error() or log.Info(). The middleware.Logger() however never prints a log level for requests. Shouldn't this be like always "INFO"? This is annoying as it's harder to parse all logs in splunk. Is there any easy workaround?

{"time":"2020-10-02T16:16:37.427169+02:00","id":"","remote_ip":"127.0.0.1","host":"localhost:6601","method":"GET","uri":"/healthcheck","user_agent":"Go-http-client/1.1","status":200,"error":"","latency":6002259,"latency_human":"6.002259ms","bytes_in":0,"bytes_out":3}
{"time":"2020-10-02T16:16:37.427275+02:00","level":"INFO","prefix":"-","file":"app.go","line":"40","message":"shutdown"}
@arvenil arvenil closed this as completed Oct 10, 2020
@narg95
Copy link

narg95 commented Mar 9, 2021

Did you solve it?

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