-
Notifications
You must be signed in to change notification settings - Fork 55
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!: support json logs #316
Merged
Merged
Changes from 26 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
49a387d
refactored structured log handling of json input
daniel-sanche c616804
network transport supports dict messages
daniel-sanche 46fe6a0
allow non-ascii chars for StructuredLogHandler
daniel-sanche 471cb83
unit tests pass
daniel-sanche 797282f
system tests pass
daniel-sanche cbc57ef
fixed lint issues
daniel-sanche 204cfff
added structured logging environment tests
daniel-sanche 16b7b9e
added generic log function to logger
daniel-sanche 4b56384
fixed unit tests
daniel-sanche 090177d
added more unit tests
daniel-sanche 7a5c55c
added system tests
daniel-sanche a9db60f
fixed lint issues
daniel-sanche 1c2ccb8
fixed breaking test
daniel-sanche 797c95e
fixed json log for pylogging
daniel-sanche a0f1309
fixed lint issue
daniel-sanche 01cd639
add python logger as label
daniel-sanche 6ff838a
🦉 Updates from OwlBot
gcf-owl-bot[bot] 3e21099
updated tests
daniel-sanche 4d35cc4
fixed system test
daniel-sanche ad1662f
ran blacken
daniel-sanche 8a64991
Merge branch 'v3.0.0' into json_logs_2
daniel-sanche fd3cbc5
fixed unit tests
daniel-sanche 0a039c1
added comment
daniel-sanche 6a5a794
🦉 Updates from OwlBot
gcf-owl-bot[bot] 36e90e7
fixed lint issues
daniel-sanche f046ab1
Merge branch 'json_logs_2' of github.com:googleapis/python-logging in…
daniel-sanche d9fa11b
removed stackdriver branding from test
daniel-sanche cdf2218
improved comments
daniel-sanche 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
This file contains 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 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 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 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 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 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 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.
is this done for telemetry purposes?
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.
Mostly for backwards compatibility. Previously, all logs were json logs with a
message
field for user input andpython_logger
with the logger name as the other field.I wanted to give users control over the entire payload so they could log arbitrary json objects, but I thought I should still put
python_logger
as a label in case some users were relying on it