/* automatically generated by JSCoverage - do not edit */
if (typeof _$jscoverage === 'undefined') _$jscoverage = {};
if (! _$jscoverage['logging/appenders/consoleAppender.js']) {
  _$jscoverage['logging/appenders/consoleAppender.js'] = [];
  _$jscoverage['logging/appenders/consoleAppender.js'][1] = 0;
  _$jscoverage['logging/appenders/consoleAppender.js'][10] = 0;
  _$jscoverage['logging/appenders/consoleAppender.js'][14] = 0;
  _$jscoverage['logging/appenders/consoleAppender.js'][15] = 0;
  _$jscoverage['logging/appenders/consoleAppender.js'][16] = 0;
  _$jscoverage['logging/appenders/consoleAppender.js'][20] = 0;
  _$jscoverage['logging/appenders/consoleAppender.js'][21] = 0;
  _$jscoverage['logging/appenders/consoleAppender.js'][22] = 0;
  _$jscoverage['logging/appenders/consoleAppender.js'][23] = 0;
  _$jscoverage['logging/appenders/consoleAppender.js'][24] = 0;
  _$jscoverage['logging/appenders/consoleAppender.js'][25] = 0;
  _$jscoverage['logging/appenders/consoleAppender.js'][26] = 0;
  _$jscoverage['logging/appenders/consoleAppender.js'][27] = 0;
  _$jscoverage['logging/appenders/consoleAppender.js'][28] = 0;
  _$jscoverage['logging/appenders/consoleAppender.js'][29] = 0;
  _$jscoverage['logging/appenders/consoleAppender.js'][30] = 0;
  _$jscoverage['logging/appenders/consoleAppender.js'][32] = 0;
}
_$jscoverage['logging/appenders/consoleAppender.js'][1]++;
var define = require("../../define.js").define, base = require("../../base"), string = base.string, style = string.style, format = string.format, Appender = require("./appender"), Level = require("../level");
_$jscoverage['logging/appenders/consoleAppender.js'][10]++;
exports = module.exports = define(Appender, {instance: {constructor: (function (options) {
  _$jscoverage['logging/appenders/consoleAppender.js'][14]++;
  options = options || {};
  _$jscoverage['logging/appenders/consoleAppender.js'][15]++;
  ! options.name && (options.name = "consoleAppender");
  _$jscoverage['logging/appenders/consoleAppender.js'][16]++;
  this["super"](arguments, [options]);
}), append: (function (event) {
  _$jscoverage['logging/appenders/consoleAppender.js'][20]++;
  if (this._canAppend(event)) {
    _$jscoverage['logging/appenders/consoleAppender.js'][21]++;
    var message = format(this.__pattern, event);
    _$jscoverage['logging/appenders/consoleAppender.js'][22]++;
    var level = event.level;
    _$jscoverage['logging/appenders/consoleAppender.js'][23]++;
    if (Level.ERROR.equals(level) || Level.FATAL.equals(level)) {
      _$jscoverage['logging/appenders/consoleAppender.js'][24]++;
      console.log(style(message, "red"));
    }
    else {
      _$jscoverage['logging/appenders/consoleAppender.js'][25]++;
      if (Level.WARN.equals(level)) {
        _$jscoverage['logging/appenders/consoleAppender.js'][26]++;
        console.log(style(message, "yellow"));
      }
      else {
        _$jscoverage['logging/appenders/consoleAppender.js'][27]++;
        if (Level.DEBUG.equals(level)) {
          _$jscoverage['logging/appenders/consoleAppender.js'][28]++;
          console.log(style(message, "magenta"));
        }
        else {
          _$jscoverage['logging/appenders/consoleAppender.js'][29]++;
          if (Level.TRACE.equals(level)) {
            _$jscoverage['logging/appenders/consoleAppender.js'][30]++;
            console.log(style(message, "cyan"));
          }
          else {
            _$jscoverage['logging/appenders/consoleAppender.js'][32]++;
            console.log(message);
          }
        }
      }
    }
  }
})}});
_$jscoverage['logging/appenders/consoleAppender.js'].source = ["var define = require(\"../../define.js\").define, base = require(\"../../base\"), string = base.string, style = string.style, format = string.format, Appender = require(\"./appender\"), Level = require(\"../level\");","","/**"," * @class Appends messages to the console."," *"," * @name ConsoleAppender"," * @augments comb.logging.appenders.Appender"," * @memberOf comb.logging.appenders"," */","exports = module.exports = define(Appender, {","\t\t\tinstance : {","","\t\t\t\tconstructor : function(options){","\t\t\t\t\toptions = options || {};","\t\t\t\t\t!options.name &amp;&amp; (options.name = \"consoleAppender\");","\t\t\t\t\tthis.super(arguments, [options]);","\t\t\t\t},","","\t\t\t\tappend : function(event) {","\t\t\t\t\tif (this._canAppend(event)) {","\t\t\t\t\t\tvar message = format(this.__pattern, event);","\t\t\t\t\t\tvar level = event.level;","\t\t\t\t\t\tif (Level.ERROR.equals(level) || Level.FATAL.equals(level)) {","\t\t\t\t\t\t\tconsole.log(style(message, \"red\"));","\t\t\t\t\t\t} else if(Level.WARN.equals(level)){","\t\t\t\t\t\t\t console.log(style(message, \"yellow\"));","\t\t\t\t\t\t}else if (Level.DEBUG.equals(level)) {","\t\t\t\t\t\t\tconsole.log(style(message, \"magenta\"));","\t\t\t\t\t\t} else if (Level.TRACE.equals(level)) {","\t\t\t\t\t\t\tconsole.log(style(message, \"cyan\"));","\t\t\t\t\t\t} else {","\t\t\t\t\t\t\tconsole.log(message);","\t\t\t\t\t\t}","\t\t\t\t\t}","\t\t\t\t}","\t\t\t}","\t\t});"];
