Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.
/ pino-mozlog Public archive

🌲 A transport for transforming pino logs into mozlog

License

Notifications You must be signed in to change notification settings

mozilla/pino-mozlog

Repository files navigation

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.