Default formatter doesn't return context by default. #267
todd-a-jacobs
started this conversation in
Ideas
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Environment
Expected Behavior
The default formatter and its descendants should support context by default.
Actual Behavior
There is no element for context in the return value from the default formatter. It has to be added as a separate element in a custom formatter, in the form of
log.context
because it's not being passed in by default.Pull Request
I'm unsure if this is intentional or not. It's easy enough to add
log.formatter
to the returned array of elements from the default formatter, but there may be a better way to handle it, or a good reason it isn't available by default.Beta Was this translation helpful? Give feedback.
All reactions