Extends caterpillar.Transform
Filter the log entires by level. Extends http://rawgit.com/bevry/caterpillar/master/docs/index.html#Transform
const logger = require('caterpillar').create()
logger.pipe(require('caterpillar-filter').create()).pipe(process.stdout)
logger.log('info', 'this will be outputted')
logger.log('debug', 'this will be ignored')
logger.setConfig({level: 5})
logger.log('info', 'now even this will be ignored')
logger.log('note', 'but not this')
#format(message)
Empty log entries that are not within our level range. Convert the message from Logger into JSON, check its level, if it is above our level, discard it.
#getInitialConfig
Get the initial configuration.
Get the initial configuration.
Object