-
Notifications
You must be signed in to change notification settings - Fork 4
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
Make logs not go to stderr by default #8
Comments
Hi Erlend. I'm thinking I'm gonna see if I can drop logrus as a dependency and just log using the stdlib. Doing log levels is a bit more setup then, but it is manageable. For when I get around to it, this seems sane: https://www.ardanlabs.com/blog/2013/11/using-log-package-in-go.html |
Cool! I'm not a Golang developer so can't suggest much, unfortunately. |
Are contributions welcome? I'm considering trying it myself. |
Yes, ofc. I'll get to around to it someday myself, but if you wanna lend a hand that would be great. My idea was something like this:
Sounds doable, I think. |
logrus is not very interested in fixing this problem at the moment. The PR submitted has been in an unmerged state. In the current state, if you must keep the use style of logrus, you can replace it with the log library zkits-logger I built for this purpose. |
@ErlendFax Could you have a look at #18 and tell me what you think? |
Looks good in GKE! Thanks! 💯 |
All logs from Metamorphosis is displayed as
error
in Google Logging - even if the log level isdebug
orinfo
... pretty annoying!From this discussion, it seems the reason is that logrus sends all logs to stderr. Someone suggests a solution/workaround in the thread, but swapping to another log lib isn't much work either I would guess.
The text was updated successfully, but these errors were encountered: