feat(zlog)!: JSON formatted logging #1
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Discussion
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Platform
All
Platform
Android
Platform
IOS
Platform
Linux
Platform
MacOS
Platform
Mobile
Platform
UNIX
Platform
Web
Platform
Windows
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
Testing
Not needed
Testing
Required
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: nonsensical-dev/zenyx-engine#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "zlog-json"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
At the moment, zlog only supports a single string format for logs:
This PR introduces JSON logging support through the new
json
feature, which addsserde
,serde_json
, andchrono
as dependencies. This enhancement allows forcustom1 fields when logging and makes Zenyx's log output more searchable, as individual fields can be queried rather than relying on string searches.Note that this is a breaking change, as both the configuration and calling convention have been modified to accommodate custom fields and their values1.Custom fields have been determined to be outside of the scope of this PR and will be added in a future PR. This also means that this is no longer a breaking change. ↩︎
abc3a54084
to339c9ee2c2
WIP: feat(zlog)!: json formatted loggingto feat(zlog)!: json formatted logging339c9ee2c2
to0d98f633a0
0d98f633a0
to9f8633ff62
feat(zlog)!: json formatted loggingto feat(zlog)!: JSON formatted logging@ -489,1 +488,3 @@
.log_to_stdout(true)
.colored_stdout(false)
.log_to_stdout(false)
.log_use_json(true)
Can we not use json by default, it makes looking at stdout logs while developing a bit painful as color is a useful visual differentiator
LogJsonStructure
structNew commits pushed, approval review dismissed automatically according to repository settings