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

Statements: 77.27% (17 / 22)      Branches: 25% (1 / 4)      Functions: 60% (3 / 5)      Lines: 64.29% (9 / 14)      Ignored: none     

All files » monolog\lib\handler\ » ConsoleLogHandler.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  1   1   1   1 1   1         1             1       1          
// Generated by CoffeeScript 1.6.3
var AbstractProcessingHandler, ConsoleLogHandler, _ref,
  __hasProp = {}.hasOwnProperty,
  __extends = function(child, parent) { for (var key in parent) { Eif (__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; };
 
AbstractProcessingHandler = require('./AbstractProcessingHandler');
 
ConsoleLogHandler = (function(_super) {
  __extends(ConsoleLogHandler, _super);
 
  function ConsoleLogHandler() {
    _ref = ConsoleLogHandler.__super__.constructor.apply(this, arguments);
    return _ref;
  }
 
  ConsoleLogHandler.prototype.write = function(record, cb) {
    console.log(record.formatted);
    if (cb instanceof Function) {
      return cb(void 0, record, this);
    }
  };
 
  return ConsoleLogHandler;
 
})(AbstractProcessingHandler);
 
module.exports = ConsoleLogHandler;
 
/*
//@ sourceMappingURL=ConsoleLogHandler.map
*/