File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -60,9 +60,10 @@ changes:
6060 - version: v8.0.0
6161 pr-url: https://github.com/nodejs/node/pull/9744
6262 description: Errors that occur while writing to the underlying streams
63- will now be ignored.
63+ will now be ignored by default .
6464-->
6565
66+
6667<!-- type=class-->
6768
6869The ` Console ` class can be used to create a simple logger with configurable
@@ -77,9 +78,18 @@ const { Console } = require('console');
7778const { Console } = console ;
7879```
7980
80- ### new Console(stdout[ , stderr] )
81+ ### new Console(stdout[ , stderr] [ , ignoreErrors ] )
82+ <!-- YAML
83+ changes:
84+ - version: v8.0.0
85+ pr-url: https://github.com/nodejs/node/pull/9744
86+ description: The `ignoreErrors` option was introduced.
87+ -->
88+
8189* ` stdout ` {stream.Writable}
8290* ` stderr ` {stream.Writable}
91+ * ` ignoreErrors ` {boolean} Ignore errors when writing to the underlying streams.
92+ Defaults to ` true ` .
8393
8494Creates a new ` Console ` with one or two writable stream instances. ` stdout ` is a
8595writable stream to print log or info output. ` stderr ` is used for warning or
You can’t perform that action at this time.
0 commit comments