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

Statements: 90% (18 / 20)      Branches: 0% (0 / 2)      Functions: 100% (5 / 5)      Lines: 100% (12 / 12)      Ignored: none     

All files » monolog\lib\formatter\ » JSONFormatter.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    1   1   1   1 1   1 1 1     1 1                     1       1          
// Generated by CoffeeScript 1.6.3
"use strict";
var AbstractFormatter, JSONFormatter, _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; };
 
AbstractFormatter = require("./AbstractFormatter");
 
JSONFormatter = (function(_super) {
  __extends(JSONFormatter, _super);
 
  function JSONFormatter() {
    _ref = JSONFormatter.__super__.constructor.apply(this, arguments);
    return _ref;
  }
 
  JSONFormatter.prototype.format = function(record) {
    return {
      level: record.level,
      level_name: record.level_name,
      channel: record.channel,
      datetime: record.date,
      message: record.message,
      extra: record.extra,
      context: record.context
    };
  };
 
  return JSONFormatter;
 
})(AbstractFormatter);
 
module.exports = JSONFormatter;
 
/*
//@ sourceMappingURL=JSONFormatter.map
*/