-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Structured logging for route controller #888
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
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
deb1bb4
Change route controller to use zap structured logging library.
835fb1b
Fixes.
fdd9e09
Make config failures soft failures and fall back to default logging c…
2937b9b
Remove logging folder and put the constants under controller folder.
68e58c2
Attach logger into context and pass context around instead of the log…
93717a1
Update dependencies.
3e86ead
Address PR comments.
f46e960
Merge branch 'master' into zap
mdemirhan 5c80740
Merge branch 'master-upstream' into zap
d0354f4
Merge branch 'master' into zap
mdemirhan 2bd31fd
Changed the logger to return a fallback logger if context doesn't hav…
564a068
Merge branch 'master' into zap
mdemirhan 6d89e28
Merge branch 'master' into zap
mdemirhan 988d4ee
Updated custom config to match zap production defaults.
065d868
Merge branch 'master' into zap
mdemirhan 319127e
Merge branch 'master' into zap
mdemirhan 85b8754
Change fallback logger to use a name instead of a separate key.
c0cc82d
Merge branch 'master' into zap
mdemirhan 60db81a
Merge branch 'master' into zap
mdemirhan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back 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.
Why is
timeKeyempty? Do we not log timestamps?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.
Kubernetes logging driver already adds a timestamp for logs collected from stdout and stderr. That is why we are omitting it here and preventing dual timestamps in the logs.