🌲 A transport for transforming pino logs into mozlog
Перейти к файлу
William Durand 32374a55ec
⬆️ release 2.12.0
2023-01-04 10:19:41 +01:00
.circleci Update Node.js to v16.19 2022-12-29 19:39:06 +00:00
__tests__ Update dependency jest to v29 (#111) 2022-09-30 13:56:17 +02:00
src Add stackdriver severity (#11) 2020-04-29 10:59:26 +02:00
.babelrc Update dependency jest to v26 (#24) 2021-02-02 11:39:29 +01:00
.gitignore Transpile code for node 6 2018-08-07 20:14:08 +02:00
.npmrc initial commit 2018-08-06 11:13:45 +02:00
.prettierignore Transpile code for node 6 2018-08-07 20:14:08 +02:00
.prettierrc initial commit 2018-08-06 11:13:45 +02:00
CHANGELOG.md Update CHANGELOG 2023-01-04 10:17:22 +01:00
CODE_OF_CONDUCT.md Reformat code of conduct 2020-04-29 10:59:49 +02:00
LICENSE.txt initial commit 2018-08-06 11:13:45 +02:00
README.md Migrate to Circle CI (#20) 2020-12-18 11:34:23 +01:00
index.js Use readable-stream (#33) 2021-02-10 10:56:54 +01:00
mozlog-schema.json initial commit 2018-08-06 11:13:45 +02:00
package-lock.json ⬆️ release 2.12.0 2023-01-04 10:19:41 +01:00
package.json ⬆️ release 2.12.0 2023-01-04 10:19:41 +01:00
renovate.json Configure Renovate (#22) 2021-02-02 10:51:26 +01:00

README.md

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.