We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16d47b1 commit c070efbCopy full SHA for c070efb
Readme.md
@@ -153,6 +153,22 @@ logger.info('hi')
153
154
See the [Options](#options) section for all possible options.
155
156
+If you are using `pino-pretty` as a stream and you need to provide options to `pino`,
157
+pass the options as the first argument and `pino-pretty` as second argument:
158
+
159
+```js
160
+const pino = require('pino')
161
+const pretty = require('pino-pretty')
162
+const stream = pretty({
163
+ prettyPrint: { colorize: true }
164
+})
165
+const logger = pino({ level: 'info' }, stream)
166
167
+// Nothing is printed
168
+logger.debug('hi')
169
+```
170
171
172
### Handling non-serializable options
173
174
Using the new [pino v7+
0 commit comments