-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Allow external configuration of logger #36
Comments
@lzap there seem to be 2 solutions to this
and use that as the logging function. @natoscott any other ideas on this? |
Bit beyond my golang expertise - @owenbutler any thoughts here? |
Whatever works, my goal is to have ability to setup logger my own way in the application. In my case that would be everything into sylog/journald with default settings (no special formatters or anything like that). |
An update to this, played around with http://github.com/uber-go/zap today. Looks nice. Currently waiting for uber-go/zap#346 to go through, then I will implement a custom logging solution built on zap using |
I have just doublechecked that speed compiles fine on golang from RHEL7 (go version go1.6.3 linux/amd64). Is there any chance you can stick with golang system logging interface getting rid of logrus? This will make packaging easier. It already contain several deps tho. Edit: If you can get rid of logrus and the formatter, the only dependency is github.com/codahale/hdrhistogram which is great news for packager. I plan to do Fedora and EPEL7 packages. |
@lzap please check out https://github.com/uber-go/zap. It is minimum-alloc logging library that is faster than stdlib log. Once my PR goes through, I plan to provide a way to specify I do plan to remove logrus and the formatter, and replace it with zap. Will try to do a PR today as a "preview" of what things will look like. |
Okay, that's fine. Thanks. |
Fixed in #43 |
Thanks looks good. |
I would like to have speed's internal logger under my control, ideally if I am able to provide own logger configuration (or log instance) that would be great. Currently it depends on some external custom formatter which I don't like, I would like to send everything into journald/syslog by default.
The text was updated successfully, but these errors were encountered: