pinojs/pino

get context information in worker thread from main thread

Closed this issue · 1 comments

the background is I'm using pino in a nodejs server framework, I wish to get som request context information in pino transport without me passing the "context" variable everytime, for example the usage is getApp().getLogger().info('hello pino') rather than getApp().getLogger().info({context:getApp().getContext(), msg:'hello pino'}),but in fact, I'm not allowed to use getApp() in transport for it's only enabled in main thread. Is there any solution here?

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.