Allow variable substitution in logger - #2
Conversation
|
does this also work in production? with pino logger |
|
Updated to allow errors to preserve their stack trace. idk about pino logger this is just for the console logger |
|
I think we should align the setup so it match pino (production usecase) ... which should be possible. Which we kind of dont like as we like to write (perhaps we are wrong) i think we should define how this works before support |
|
I'm not really sure what |
|
yeah you are right console and pino (structure logging is not really one 2 one). pino supports it. (printf style interpolation) Pino default syntax logger.info("hello") now for the problem turns out that we like write it like this i am all for modify the api to fit our need ... but yeah it needs to be complete for the different use cases. |
ie.
logger.debug('some string %s', var)