one-line-logger as a executable program
Prerequisites
- [X] I have written a descriptive issue title
- [X] I have searched existing issues to ensure the feature has not already been requested
🚀 Feature Proposal
I would love to use one-line-logger like this.
node app.js | @fastify/one-line-logger
it it possible and in the scope of this repo? i would like to contribute on it
Motivation
No response
Example
No response
Not sure if pino is sponsoring this approach as it is called "legacy" in its docs: https://github.com/pinojs/pino/blob/master/docs/transports.md#legacy-transports
Opinions @climba03003 ?
From my point of view, I like the pipe operator 👍🏼
@Eomm
there's pino-pretty which is not legacy.
https://github.com/pinojs/pino-pretty
So do something like https://github.com/pinojs/pino-pretty/blob/master/bin.js
We should probably find a better term than "legacy" in the pino docs.
Opinions @climba03003 ?
We can go with simple script that pipe the stdin to Transform first.
Note that this feature is only useful in development. Welcome for PR.