signal-debug
v1.4.10
Published
Start customisable debug output on USR2 signal.
Downloads
77
Readme
Logger, starts logging only after USR2 signal
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)