Skip to content

Commit eafbc90

Browse files
authored
fix(docs): update multistream example and description (#1649)
1 parent bc3cdfb commit eafbc90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,7 +1230,7 @@ log.info('this will be written to /tmp/debug.stream.out and /tmp/info.stream.out
12301230
log.fatal('this will be written to /tmp/debug.stream.out, /tmp/info.stream.out and /tmp/fatal.stream.out')
12311231
```
12321232
1233-
In order for `multistream` to work, the log level __must__ be set to the lowest level used in the streams array.
1233+
In order for `multistream` to work, the log level __must__ be set to the lowest level used in the streams array. Default is `info`.
12341234
12351235
#### Options
12361236
@@ -1244,7 +1244,7 @@ In order for `multistream` to work, the log level __must__ be set to the lowest
12441244
var pino = require('pino')
12451245
var multistream = pino.multistream
12461246
var streams = [
1247-
{stream: process.stdout},
1247+
{level: 'debug', stream: process.stdout},
12481248
{level: 'error', stream: process.stderr},
12491249
]
12501250

0 commit comments

Comments
 (0)