From eafbc906a0cb065eb2da05edaebe144d838dcab2 Mon Sep 17 00:00:00 2001 From: Jan Beseda Date: Fri, 17 Feb 2023 21:36:14 +0100 Subject: [PATCH] fix(docs): update multistream example and description (#1649) --- docs/api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api.md b/docs/api.md index b86a6d1b6..e410c2a26 100644 --- a/docs/api.md +++ b/docs/api.md @@ -1230,7 +1230,7 @@ log.info('this will be written to /tmp/debug.stream.out and /tmp/info.stream.out log.fatal('this will be written to /tmp/debug.stream.out, /tmp/info.stream.out and /tmp/fatal.stream.out') ``` -In order for `multistream` to work, the log level __must__ be set to the lowest level used in the streams array. +In order for `multistream` to work, the log level __must__ be set to the lowest level used in the streams array. Default is `info`. #### Options @@ -1244,7 +1244,7 @@ In order for `multistream` to work, the log level __must__ be set to the lowest var pino = require('pino') var multistream = pino.multistream var streams = [ - {stream: process.stdout}, + {level: 'debug', stream: process.stdout}, {level: 'error', stream: process.stderr}, ]