monolog
Version:
Log with Monolog
17 lines (16 loc) • 493 B
text/coffeescript
AbstractHandler = require('./AbstractHandler')
class NullHandler extends AbstractHandler
###
Any record it can handle will be thrown away. This can be used
to put on top of an existing stack to override it temporarily.
{Object} record
{Function} cb
{Boolean}
###
handle:(record,cb)->
if record.level <
cb(new Error('cant handle record'),undefined,record,this)
false
else
super
true