signal-debug

Start customisable debug output on USR2 signal.


Keywords
debug, logging
License
JSON
Install
npm install signal-debug@1.4.10

Documentation

Logger, starts logging only after USR2 signal

js-standard-style semantic-release NPM

Simply send USR2 singal to the node process to enable/disable logging output.

process.emit('SIGUSR2', { forceDisable: true }); to clearly disable logging (doesn't matter if it was enabled or not)

process.emit('SIGUSR2', { forceEnable: true }); to apparently enable logging (doesn't matter if it was enabled or not)