pino-mozlog

A transport for transforming pino logs into mozlog

Usage no npm install needed!

<script type="module">
  import pinoMozlog from 'https://cdn.skypack.dev/pino-mozlog';
</script>

README

pino-mozlog

CircleCI npm version

A transport for transforming pino logs into mozlog.

Installation

$ npm i pino-mozlog

Usage

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

License

pino-mozlog is released under the Mozilla Public License Version 2.0. See the bundled LICENSE file for details.