-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: migrate to slog.Logger #31
Conversation
This commit removes the ServerLogger interface and updates the recover and logging middlewares. Signed-off-by: Marek Cermak <marek.cermak@strv.com>
Signed-off-by: Marek Cermak <marek.cermak@strv.com>
Signed-off-by: Marek Cermak <marek.cermak@strv.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #31 +/- ##
==========================================
- Coverage 69.78% 62.23% -7.55%
==========================================
Files 8 11 +3
Lines 546 617 +71
==========================================
+ Hits 381 384 +3
- Misses 153 221 +68
Partials 12 12 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Marek Cermak <marek.cermak@strv.com>
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.
Generally LGTM but after I got a taste of slog.LogValuer
I feel strongly that it is The Right Way™ and I would love to see it adopted here as well. 🙏
This commit also removes the error and panic objects from the log data and renames it to request data. The fields are then nested under a group called "request" and as such, "request_" prefix was removed from the fields. Signed-off-by: Marek Cermak <marek.cermak@strv.com>
Signed-off-by: Marek Cermak <marek.cermak@strv.com>
Signed-off-by: Marek Cermak <marek.cermak@strv.com>
Signed-off-by: Marek Cermak <marek.cermak@strv.com>
da2e122
to
13501ff
Compare
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.
❤️
This commit removes the ServerLogger interface and updates the recover and logging middlewares.