-
Notifications
You must be signed in to change notification settings - Fork 683
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
v2: Add support for the zerolog logging provider #299
Conversation
Codecov Report
@@ Coverage Diff @@
## v2 #299 +/- ##
==========================================
+ Coverage 83.58% 84.01% +0.42%
==========================================
Files 30 30
Lines 932 932
==========================================
+ Hits 779 783 +4
+ Misses 114 110 -4
Partials 39 39
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing!
What's your experience as the first new logging contributor to v2? (:
Any feedback vs what we had in v1?
case logging.ERROR: | ||
cl.Error().Msg(msg) | ||
default: | ||
// TODO(kb): Perhaps this should be a logged warning, defaulting to ERROR to get attention |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good, point let's have this discussion wider in some ticket/issue. I think panic is fine as this should be covered by tests (: (not necessarily in this project, but also for users).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also TBH we should have some linter to check if we implement all values of this enum. It should be trivial - I will add issue exactly about this 🤗
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! ❤️ |
Yeah, definitely a huge improvement in breaking out the logging-variant bits rather than duplicating lots of code that won't really be fully grokked (or questioned) with each port of a new logger. |
Integrates zerolog into go-grpc-middleware/providers.
I welcome all feedback!