This directory contains examples of this library.
To execute them, first install log-process-errors
.
Then:
- for JavaScript files, run
node node_modules/log-process-errors/examples/FILE.js
. - for command line files (Bash), run
bash node_modules/log-process-errors/examples/FILE.sh
.
You can edit the examples.
They can also be run directly in your browser.
- How process errors look by default without
log-process-errors
: JavaScript, command line. - How process errors look with
log-process-errors
: JavaScript, command line. - Restoring Node.js default behavior: JavaScript.
log
: JavaScript.level
: JavaScript.exitOn
: JavaScript.colors
: JavaScript.