Code coverage report for monolog\lib\handler\NullHandler.js

Statements: 60.87% (14 / 23)      Branches: 0% (0 / 4)      Functions: 60% (3 / 5)      Lines: 53.33% (8 / 15)      Ignored: none     

All files » monolog\lib\handler\ » NullHandler.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42  1   1   1   1 1   1                           1                   1              
// Generated by CoffeeScript 1.6.3
var AbstractHandler, NullHandler, _ref,
  __hasProp = {}.hasOwnProperty,
  __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
 
AbstractHandler = require('./AbstractHandler');
 
NullHandler = (function(_super) {
  __extends(NullHandler, _super);
 
  function NullHandler() {
    _ref = NullHandler.__super__.constructor.apply(this, arguments);
    return _ref;
  }
 
  /*
  		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.
    		@param  {Object}   record 
    		@param  {Function} cb     
    		@return {Boolean}
  */
 
 
  NullHandler.prototype.handle = function(record, cb) {
    if (record.level < this.level) {
      cb(new Error('cant handle record'), void 0, record, this);
      return false;
    } else {
      NullHandler.__super__.handle.apply(this, arguments);
      return true;
    }
  };
 
  return NullHandler;
 
})(AbstractHandler);
 
/*
//@ sourceMappingURL=NullHandler.map
*/