A transport for transforming pino logs into mozlog.
$ npm i pino-mozlog
This transport only reformats the logs into mozlog compatible strings:
$ node your-app.js | pino-mozlog
You can specify the mozlog type:
$ node your-proxy.js | pino-mozlog --type proxy
By default, errors are sent to stderr
(not mozlog-compliant though). You can disable this behavior and ignore all errors with --silent
:
$ node your-app.js | pino-mozlog --silent
pino-mozlog is released under the Mozilla Public License Version 2.0. See the bundled LICENSE file for details.