This is a small tool that allows transforms logs written with pino
in newline-delimited JSON on the standard output to the Compact Log Event Format (CLEF
) supported by the Seq logging server.
Typical use case for this is :
- write your logs with pino how you would normally do it
logger.info({some: 'extra', context:'info'}, 'this is the message');
- optionally use the
Message Template
syntax (https://messagetemplates.org/) for more user-friendly logs
logger.info({user: 'John', amount:'2345', extra: 'other info'}, '{user} just spent {amount} euros on the website');