зеркало из https://github.com/mozilla/pino-mozlog.git
32374a55ec | ||
---|---|---|
.circleci | ||
__tests__ | ||
src | ||
.babelrc | ||
.gitignore | ||
.npmrc | ||
.prettierignore | ||
.prettierrc | ||
CHANGELOG.md | ||
CODE_OF_CONDUCT.md | ||
LICENSE.txt | ||
README.md | ||
index.js | ||
mozlog-schema.json | ||
package-lock.json | ||
package.json | ||
renovate.json |
README.md
pino-mozlog
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.