Code coverage report for monolog\lib\formatter\LineFormatter.js

Statements: 89.66% (26 / 29)      Branches: 50% (2 / 4)      Functions: 71.43% (5 / 7)      Lines: 85.71% (18 / 21)      Ignored: none     

All files » monolog\lib\formatter\ » LineFormatter.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    1   1   1   1   1   1 1   1   1 9 9     1 15 15 15     1             1       1          
// Generated by CoffeeScript 1.6.3
"use strict";
var LineFormatter, NormalizerFormatter, util, _,
  __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; };
 
util = require('util');
 
_ = require('underscore');
 
NormalizerFormatter = require('./NormalizerFormatter');
 
LineFormatter = (function(_super) {
  __extends(LineFormatter, _super);
 
  LineFormatter.SIMPLE_FORMAT = _.template("[<%-datetime %>] <%-channel%>.<%-level_name%>: <%=message%> <%=context%> <%=extra%> \n");
 
  function LineFormatter(template) {
    this.template = template != null ? template : LineFormatter.SIMPLE_FORMAT;
    LineFormatter.__super__.constructor.apply(this, arguments);
  }
 
  LineFormatter.prototype.format = function(record) {
    var vars;
    vars = LineFormatter.__super__.format.call(this, record);
    return this.template(vars);
  };
 
  LineFormatter.prototype.formatBatch = function(records) {
    var _this = this;
    return records.map(function(r) {
      return _this.format(r);
    }).join();
  };
 
  return LineFormatter;
 
})(NormalizerFormatter);
 
module.exports = LineFormatter;
 
/*
//@ sourceMappingURL=LineFormatter.map
*/