transports behavior for @accelint/logger
#873
brandonjpierce
started this conversation in
Polls
Replies: 2 comments 5 replies
-
|
Could we make it additive, but expose a Boolean flag to explicitly disable the default transport? |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
In the case of the Replace option, would you export the default transports array and allow them to spread it (to recreate Additive) or to filter it and then spread it, and/or pick and choose individual transports as exports? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The current setup of
@accelint/loggerwas designed around the idea that almost all of our use cases include a PLG stack or similar wherestdoutis consumed and stored from the k8s pods.As such, we baked in a default transport into the logger to accommodate for this fact. At present it swaps between a human readable and structured logger via the
prettyoption forgetLogger().At present if you supply any additional
transportsthey are additive to the default stdout logger. You cannot disable that default stdout logger. Meaning if you add inpinotransport, for whatever reason, you would technically double up on the structured logging to stdout. E.g.8 votes ·
Beta Was this translation helpful? Give feedback.
All reactions