pino icon indicating copy to clipboard operation
pino copied to clipboard

create a function to capture full log object

Open sumitLKpatel opened this issue 11 months ago • 1 comments

please create a function may inside option, which can return a full object that is printing or streaming, so we can store that log or we can process that object wherever we want

like below

logger = pino({ objectStream : (obj) => { console.log(obj) // this should be full object which is printing } }, (stream))

sumitLKpatel avatar Mar 01 '24 13:03 sumitLKpatel

It is very difficult to figure out what you are asking.

Please provide a minimal reproducible example. Doing so will help us diagnose your issue. It should be the bare minimum code needed to trigger the issue, and easily runnable without any changes or extra code.

You may use a GitHub repository to host the code if it is too much to fit in a code block (or two).

jsumners avatar Mar 01 '24 14:03 jsumners