swallow-logs
v1.1.0
Published
Run isolated procedures for which the log output is discarded.
Downloads
12
Readme
node-swallow-logs
Need to disable log output for just a little bit? Wrap that procedure in this function which will momentarily overwrite console.log
and then set it back after the procedure is done.
Get started
npm install swallow-logs
Usage
const swallowLogs = require('swallow-logs')
swallowLogs(() => {
console.log('this will not get logged')
}
console.log('but this will')