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:
60
60
- version: v8.0.0
61
61
pr-url: https://github.com/nodejs/node/pull/9744
62
62
description: Errors that occur while writing to the underlying streams
63
- will now be ignored.
63
+ will now be ignored by default .
64
64
-->
65
65
66
+
66
67
<!-- type=class-->
67
68
68
69
The ` Console ` class can be used to create a simple logger with configurable
@@ -77,9 +78,18 @@ const { Console } = require('console');
77
78
const { Console } = console ;
78
79
```
79
80
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
+
81
89
* ` stdout ` {stream.Writable}
82
90
* ` stderr ` {stream.Writable}
91
+ * ` ignoreErrors ` {boolean} Ignore errors when writing to the underlying streams.
92
+ Defaults to ` true ` .
83
93
84
94
Creates a new ` Console ` with one or two writable stream instances. ` stdout ` is a
85
95
writable 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