Closed timlohse1104 closed 1 year ago
Totals | |
---|---|
Change from base Build 5620622122: | 0.0% |
Covered Lines: | 419 |
Relevant Lines: | 419 |
Updated documentation with --messageFormat
condition example.
Add matching for condition and property keys.
Add further unit tests for parseMessageFormat function.
Hey @jsumners thanks for the code review. I will look into it after work. Please excuse my poor english var and function wording. Will edit.
Hey @jsumners thanks for the code review. I will look into it after work. Please excuse my poor english var and function wording. Will edit.
No problem. The review phase is there to get us into an agreeable state.
See #441
It's now possible to pass
--messageFormat
option containing conditional statements for log data.Example log data:
{level: 30, req: {id: 'foo'}}
Example
--messageFormat
containing conditional:"{level} - {if req.id}({req.id}){end}{if msg} - {msg}{end}"
Example output:
"30 - (foo)"
Unescaped if / end block within
--messageFormat
will just be deleted.