-
Notifications
You must be signed in to change notification settings - Fork 41
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
Refactor logging, switch to zerolog, log structured objects, enable caller logging in debug #106
base: master
Are you sure you want to change the base?
Conversation
CI is failing since it uses vendoring and the added dependency hasn't been vendored. Do we still want to vendor dependencies? |
I updated the PR to update the vendored dependencies. I'll save the decision on moving away from vendored deps until later |
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.
Second @willbuckner's suggestions, but otherwise lgtm
Pushed a rewritten commit to address Wills feedback |
…aller logging in debug This is decent sized refactor of all logging code. The "file" backend could still use more work, as it doesn't retain the calling spec. We still respect the configuration options to configure log level and json logging, though debug logging now enables logging where in the source code the log was emitted. All log messages have been lowercased for consistency, and log objects prefer snake_case for object names. Some redundant logging(where we log, then return an error to a function that logs it) has been removed.
This is decent sized refactor of all logging code. The "file" backend could still use more work, as it doesn't retain the calling spec.
We still respect the configuration options to configure log level and json logging, though debug logging now enables logging where in the source code the log was emitted.
All log messages have been lowercased for consistency, and log objects prefer snake_case for object names.
Some redundant logging(where we log, then return an error to a function that logs it) has been removed.