Comparing version 2.4.2 to 2.4.3
{ | ||
"name": "pino", | ||
"version": "2.4.2", | ||
"version": "2.4.3", | ||
"description": "fast and simple logger", | ||
@@ -5,0 +5,0 @@ "main": "pino.js", |
@@ -471,2 +471,19 @@ # pino [![Build Status](https://travis-ci.org/mcollina/pino.svg)](https://travis-ci.org/mcollina/pino) | ||
You can use the pretty transformer internally, like so: | ||
```js | ||
'use strict' | ||
var pino = require('pino') | ||
var pretty = pino.pretty() | ||
pretty.pipe(process.stdout) | ||
var log = pino({ | ||
name: 'app', | ||
safe: true | ||
}, pretty) | ||
log.child({ widget: 'foo' }).info('hello') | ||
log.child({ widget: 'bar' }).warn('hello 2') | ||
``` | ||
<a name="extreme"></a> | ||
@@ -473,0 +490,0 @@ ## Extreme mode explained |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
471106
806