@@ -17,8 +17,7 @@ on the console which is very useful. Unfortunately those errors:
1717 [ ` rejectionHandled ` ] ( https://nodejs.org/api/process.html#process_event_rejectionhandled )
1818 and
1919 [ ` multipleResolves ` ] ( https://nodejs.org/api/process.html#process_event_multipleresolves ) making it hard to debug.
20- - are inconvenient to
21- [ log to an external service] ( docs/API.md#optionslog-string ) .
20+ - are inconvenient to [ log to an external service] ( docs/API.md#log ) .
2221- cannot be conditionally skipped.
2322- are printed each time an error is repeated (except for
2423 [ ` warning ` ] ( https://nodejs.org/api/process.html#process_event_warning ) ).
@@ -76,16 +75,14 @@ logProcessErrors(options)
7675
7776` options ` is an optional object with the following properties:
7877
79- - [ ` log ` ` {function} ` ] ( docs/API.md#optionslog-string ) : customize how events
80- are logged. Default: use ` console.warn() ` , ` console.error() ` , etc.
81- - [ ` level ` ` {object} ` ] ( docs/API.md#optionslevel-object ) : which log level to
82- use. Default: ` { warning: 'warn', multipleResolves: 'info', default: 'error' } ` .
83- - [ ` message ` ` {function} ` ] ( docs/API.md#optionsmessage-function ) : customize
84- messages.
85- - [ ` colors ` ` {boolean} ` ] ( docs/API.md#optionscolors-boolean ) : colorize
86- messages. Default: ` true ` .
87- - [ ` exitOn ` ` {string[]} ` ] ( docs/API.md#optionsexiton-string ) : which events
88- should trigger ` process.exit(1) ` . Default: ` ['uncaughtException'] ` .
78+ - [ ` log ` ` {function} ` ] ( docs/API.md#log ) : customize how events are logged.
79+ Default: use ` console.warn() ` , ` console.error() ` , etc.
80+ - [ ` level ` ` {object} ` ] ( docs/API.md#level ) : which log level to use. Default:
81+ ` { warning: 'warn', multipleResolves: 'info', default: 'error' } ` .
82+ - [ ` message ` ` {function} ` ] ( docs/API.md#message ) : customize messages.
83+ - [ ` colors ` ` {boolean} ` ] ( docs/API.md#colors ) : colorize messages. Default: ` true ` .
84+ - [ ` exitOn ` ` {string[]} ` ] ( docs/API.md#exiton ) : which events should trigger
85+ ` process.exit(1) ` . Default: ` ['uncaughtException'] ` .
8986
9087Please see the [ options full documentation] ( docs/API.md ) .
9188
0 commit comments