@@ -18,7 +18,8 @@ on the console which is very useful. Unfortunately those process errors:
1818 [ ` rejectionHandled ` ] ( https://nodejs.org/api/process.html#process_event_rejectionhandled )
1919 and
2020 [ ` multipleResolves ` ] ( https://nodejs.org/api/process.html#process_event_multipleresolves ) making it hard to debug.
21- - are inconvenient to [ log to an external service] ( #custom-logging ) .
21+ - are inconvenient to
22+ [ log to an external service] ( docs/options.md#optionslog-string ) .
2223- cannot be conditionally skipped.
2324- are printed each time an error is repeated (except for
2425 [ ` warning ` ] ( https://nodejs.org/api/process.html#process_event_warning ) ).
@@ -76,16 +77,16 @@ logProcessErrors(options)
7677
7778` options ` is an optional object with the following properties:
7879
79- - [ ` log ` ` {function} ` ] ( #custom-logging ) : override how events are logged.
80- Default: use ` console.warn() ` , ` console.error() ` , etc.
81- - [ ` level ` ` {object} ` ] ( #log-level ) : which log level to use. Default:
82- ` { warning: 'warn', multipleResolves: 'info', default: 'error' } ` .
83- - [ ` message ` ` {function} ` ] ( #log-message ) : override the default message
84- generation.
85- - [ ` colors ` ` {boolean} ` ] ( #log-message ) : colorize the default message. Default:
86- ` true ` .
87- - [ ` exitOn ` ` {string[]} ` ] ( #process-exit ) : which events should trigger
88- ` process.exit(1) ` . Default: ` ['uncaughtException'] ` .
80+ - [ ` log ` ` {function} ` ] ( docs/options.md#optionslog-string ) : override how events
81+ are logged. Default: use ` console.warn() ` , ` console.error() ` , etc.
82+ - [ ` level ` ` {object} ` ] ( docs/options.md#optionslevel-object ) : which log level to
83+ use. Default: ` { warning: 'warn', multipleResolves: 'info', default: 'error' } ` .
84+ - [ ` message ` ` {function} ` ] ( docs/options.md#optionsmessage-function ) : override
85+ the default message generation.
86+ - [ ` colors ` ` {boolean} ` ] ( docs/options.md#optionscolors-boolean ) : colorize the
87+ default message. Default: ` true ` .
88+ - [ ` exitOn ` ` {string[]} ` ] ( docs/options.md#optionsexiton-string ) : which events
89+ should trigger ` process.exit(1) ` . Default: ` ['uncaughtException'] ` .
8990
9091Please see the [ options full documentation] ( docs/options.md ) .
9192
0 commit comments