-
Notifications
You must be signed in to change notification settings - Fork 631
[CBR-423] Structured logging of data structures #3609
[CBR-423] Structured logging of data structures #3609
Conversation
455bd47
to
210185f
Compare
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.
Seems legit!
log-configs/template-demo.yaml
Outdated
@@ -8,3 +8,9 @@ loggerTree: | |||
files: | |||
- {{file}}.pub |
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.
we can actually remove the *.pub file as the JSON log will replace it
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.
Done.
<*> pure ((K._logEnvApp le) <> ns) | ||
<*> pure loc | ||
let lhs = cfg ^. lcLoggerTree ^. ltHandlers ^.. each | ||
forM_ (filterJson lhs) (\ lh -> do |
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.
here we should test for _ltMinSeverity and only enter the message in the queues if its severity is greater or equal.
(see PR #3613)
ad48f1c
to
6ffb31f
Compare
3787bde
to
5acaee7
Compare
@erikd one last commit added and rebased again |
5acaee7
to
21baa09
Compare
|
21baa09
to
401ef9f
Compare
401ef9f
to
090a16a
Compare
Description
Structured logging of data structures.
Up to the current version of code only Text messages are logged. So we want to log items (besides Text ) that have a ToJSON instance.
Linked issue
CBR-423
Type of change
Developer checklist
Testing checklist
QA Steps
Screenshots (if available)