signal-debug
TypeScript icon, indicating that this package has built-in type declarations

1.4.10 • Public • Published

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)

Readme

Keywords

Package Sidebar

Install

npm i signal-debug

Weekly Downloads

5

Version

1.4.10

License

JSON

Unpacked Size

5.96 kB

Total Files

6

Last publish

Collaborators

  • nordluf