@@ -40,6 +40,14 @@ With `log-process-errors`:
4040- ** Debugging** of process errors in development.
4141- Automated ** testing** of process errors.
4242
43+ # Demo
44+
45+ You can try this library:
46+
47+ - either directly
48+ [ in your browser] ( https://repl.it/@ehmicky/log-process-errors ) .
49+ - or by executing the [ ` examples ` files] ( examples/README.md ) in a terminal.
50+
4351# Install
4452
4553Production code (e.g. a server) can install this either as a production or
@@ -80,43 +88,43 @@ logProcessErrors(options)
8088
8189# Options
8290
83- ` options ` is an optional object with the following properties.
84-
85- This is a quick summary. Please see the
86- [ options full documentation] ( docs/API.md ) for more information and examples.
87-
88- ## [ log] ( docs/API.md#log )
91+ ## log
8992
9093_ Type_ : ` function(message, level, event) ` <br >
9194
9295Customize how events are logged.
96+ [ Full documentation] ( docs/API.md#log ) .
9397
94- ## [ level] ( docs/API.md#level )
98+ ## level
9599
96100_ Type_ : ` object ` <br >
97101_ Default_ : ` { warning: 'warn', multipleResolves: 'info', default: 'error' } `
98102
99103Which log level to use.
104+ [ Full documentation] ( docs/API.md#level ) .
100105
101- ## [ message] ( docs/API.md#message )
106+ ## message
102107
103108_ Type_ : ` function(level, event, options) => string `
104109
105110Customize messages.
111+ [ Full documentation] ( docs/API.md#message ) .
106112
107- ## [ colors] ( docs/API.md#colors )
113+ ## colors
108114
109115_ Type_ : ` boolean ` <br >
110116_ Default_ : ` true ` if the output is a terminal.
111117
112118Colorize messages.
119+ [ Full documentation] ( docs/API.md#colors ) .
113120
114- ## [ exitOn] ( docs/API.md#exiton )
121+ ## exitOn
115122
116123_ Type_ : ` string[] ` <br >
117124_ Default_ : ` ["uncaughtException"] `
118125
119126Which events should trigger ` process.exit(1) ` .
127+ [ Full documentation] ( docs/API.md#exiton ) .
120128
121129# Support
122130
0 commit comments