Matteo Collina

Results 2948 comments of Matteo Collina
trafficstars

The default settings are defined to work well in your simple production setup. You don't need to tweak anything. All the above are required if you have more sophisticated requirements....

> Are there any benefits of using the pino/file transport over using pino.destination when logging to the stdout stream? (basically worker thread VS main thread?) No. This just adds more...

It's not currently supported by the browser API. Would you like to send a PR?

Simply put: https://github.com/pinojs/pino/blob/master/browser.js does not have this functionality. Only the server-side version of pino implements it. Would you like to contribute this by sending a Pull Reques?

> So my question from it like: How should we handle simple formats to level and timestamp for example? I don't understand the question :(. Can you clarify? Is the...

You can just use prettyPrint as a stream: https://github.com/pinojs/pino-pretty#programmatic-integration

Could you make the destination configurable?

Take a look at https://getpino.io/#/docs/bundling

Have you tried using it in this way? I don't remember from the top of my head. In case it's not, could you produce an exmaple?