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

Statements: 80% (24 / 30)      Branches: 25% (2 / 8)      Functions: 83.33% (5 / 6)      Lines: 81.82% (18 / 22)      Ignored: none     

All files » monolog\lib\handler\ » AbstractProcessingHandler.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 43 44 45 46 47 48 49 50 51 52  1   1   1   1 1   1 8 8     1 15 15 15 15 15 15                           1             1       1          
// Generated by CoffeeScript 1.6.3
var AbstractHandler, AbstractProcessingHandler, _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');
 
AbstractProcessingHandler = (function(_super) {
  __extends(AbstractProcessingHandler, _super);
 
  function AbstractProcessingHandler() {
    _ref = AbstractProcessingHandler.__super__.constructor.apply(this, arguments);
    return _ref;
  }
 
  AbstractProcessingHandler.prototype.handle = function(record, cb) {
    Eif (this.isHandling(record)) {
      record = this.processRecord(record);
      record.formatted = this.getFormatter() ? this.getFormatter().format(record) : record.message;
      this.write(record, cb);
      this.bubble === false;
      return false;
    } else {
      return false;
    }
  };
 
  /*
  		writes a record
  		@param  {monolog.Record}   record 
  		@param  {Function} cb     
  		@return {Boolean}
  */
 
 
  AbstractProcessingHandler.prototype.write = function(record, cb) {
    if (cb instanceof Function) {
      cb(void 0, void 0, record, this);
    }
    return true;
  };
 
  return AbstractProcessingHandler;
 
})(AbstractHandler);
 
module.exports = AbstractProcessingHandler;
 
/*
//@ sourceMappingURL=AbstractProcessingHandler.map
*/