You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: option.transport.targets do not allow custom level formatters
when using a formatter to change loglevel numbers to labels and I already figured out that formatters does not work with multiple targets. Nevertheless our specification says we need labels instead of numbers in the log level so that all logs are harmonised.
I tried mixins but it feels they can not used to overwrite level field. Is there any other chance for us to have level = warn instead of the numeric counterpart?
Maybe some more information: We use pino/file and pino-loki as targets.
Thank you so much in advance!
The text was updated successfully, but these errors were encountered:
@mcollina I can pick this one up. Quick question - do you think this is just a plain bug, or there is something conceptually tricky about getting this to work? And maybe you can point me to the relevant part of the code where we are resolving levels for multiple transports?
Hi,
I have the error
Error: option.transport.targets do not allow custom level formatters
when using a formatter to change loglevel numbers to labels and I already figured out that formatters does not work with multiple targets. Nevertheless our specification says we need labels instead of numbers in the log level so that all logs are harmonised.
I tried mixins but it feels they can not used to overwrite level field. Is there any other chance for us to have level = warn instead of the numeric counterpart?
Maybe some more information: We use pino/file and pino-loki as targets.
Thank you so much in advance!
The text was updated successfully, but these errors were encountered: