-
-
Notifications
You must be signed in to change notification settings - Fork 12
feat: Structured logging #409
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 15 commits
Commits
Show all changes
67 commits
Select commit
Hold shift + click to select a range
92b2fbe
Define option to enable logs
limbonaut 55953f1
Add intermediary logging API (as log() method for now) on Apple
limbonaut f484ea5
Enable logs in the project
limbonaut 437ca29
Add structured log call to project (a test)
limbonaut 2df8297
Change arg order in temporary API method
limbonaut bbf9c52
Add incomplete native implementation
limbonaut 0b3be7a
Add initial Android implementation
limbonaut c576edb
Add SentrySDK.logger API
limbonaut e62c253
Add default values
limbonaut 0a5f97d
Update enrich_events.gd
limbonaut a911727
Add optimized path for log() on Android
limbonaut 678ac95
Add class descriptions for similar-named SentryLogger and
limbonaut 7ea4b60
Introduce SentryLogLevel enum
limbonaut 792402a
Fix attributes on Android
limbonaut 605fa60
Fix logger test
limbonaut 4dc480f
Add logger.trace()
limbonaut e58ed52
Introduce experimental options
limbonaut b3eb911
Fix using experimental option
limbonaut 34db858
Processing structure
limbonaut 77fb5e8
Expland SentryLog, add CocoaLog
limbonaut d109deb
Export SentryLog API
limbonaut 539dbdf
Add Log.add_attributes() and log.remove_attribute() with Cocoa
limbonaut b778863
Add NativeLog implementation
limbonaut 3d538c4
Move enum to SentryLog
limbonaut 00a202d
Fix cocoa util variant conversion
limbonaut 2a1dbea
Add tests
limbonaut a49dba5
Register NativeLog class
limbonaut b6eb22a
Add mostly implemented AndroidLog
limbonaut 5f7957f
add_attributes and remove_attribute on Android
limbonaut deba6ae
Fix cutting UTF-8 strings
limbonaut db26f47
Fix get_attribute() on Android
limbonaut 50c6729
Add mobile tests for structured logs
limbonaut 194377b
Forgot mobile test support in main loop
limbonaut 53c5573
Add UTF-8 test
limbonaut c810112
Undo changes in enrich_events.gd
limbonaut 06e8005
Fixes for NativeLog
limbonaut 61eba8a
Fix memleak with SentrySDK.logger
limbonaut 16f5f74
Improve native log type error message
limbonaut b887455
Don't print to engine logger within another log operation
limbonaut 0848118
Fixes for NativeLog
limbonaut 92c69d0
Don't discard event, so not to trigger debug printing
limbonaut 4d0452a
logging: Move print.h to logging
limbonaut cd61aa6
Move print & logger into logging, extract logging state
limbonaut fd4290d
Log runtime errors
limbonaut 25f7d14
Log more error attributes
limbonaut d63a1be
Merge branch 'main' into feat/structured-logging
limbonaut 04a3ee7
Merge branch 'main' into feat/structured-logging
limbonaut fc9790d
Remove string interpolation and attributes from API
limbonaut 7638bb6
Adjust tests
limbonaut 6ca173f
Update docs
limbonaut 3a1222c
Doc corrections
limbonaut 376d119
Use proper sentry.origin
limbonaut a52b120
Update mobile_tests.gd
limbonaut b111391
Fix boolean conv on native
limbonaut d5a696b
Test type with boolean
limbonaut 01c2b73
Revert type check
limbonaut b4adbc9
Update test_structured_logs.gd
limbonaut c8d6e6e
Fix XML formatting
limbonaut 441f7e9
Test trace shortcut
limbonaut 36ff595
Update SentryLogger.xml
limbonaut 3c3b31a
Comment in mobile tests
limbonaut 688d03b
Clarify comment
limbonaut edfa79d
Fix "warning" => "warn" on native
limbonaut f25971c
Fix String => Variant on Android
limbonaut ffddc4d
Update CHANGELOG.md
limbonaut 42b007a
Populate sentry.event_id onlly if not empty
limbonaut 84e0fa9
Merge remote-tracking branch 'origin/main' into feat/structured-logging
limbonaut 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 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,3 +51,4 @@ options/dsn="https://[email protected] | |
| options/attach_scene_tree=true | ||
| logger/include_variables=true | ||
| experimental/attach_screenshot=true | ||
| experimental/enable_logs=true | ||
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| #pragma once | ||
|
|
||
| namespace sentry { | ||
|
|
||
| enum LogLevel { | ||
| LOG_LEVEL_TRACE, | ||
| LOG_LEVEL_DEBUG, | ||
| LOG_LEVEL_INFO, | ||
| LOG_LEVEL_WARN, | ||
| LOG_LEVEL_ERROR, | ||
| LOG_LEVEL_FATAL | ||
| }; | ||
|
|
||
| } |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.