1.1.0 • Published 8 years ago

swallow-logs v1.1.0

Weekly downloads
128
License
MIT
Repository
github
Last release
8 years ago

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')