/* automatically generated by JSCoverage - do not edit */
if (typeof _$jscoverage === 'undefined') _$jscoverage = {};
if (! _$jscoverage['logging/appenders/appender.js']) {
  _$jscoverage['logging/appenders/appender.js'] = [];
  _$jscoverage['logging/appenders/appender.js'][1] = 0;
  _$jscoverage['logging/appenders/appender.js'][30] = 0;
  _$jscoverage['logging/appenders/appender.js'][35] = 0;
  _$jscoverage['logging/appenders/appender.js'][36] = 0;
  _$jscoverage['logging/appenders/appender.js'][37] = 0;
  _$jscoverage['logging/appenders/appender.js'][38] = 0;
  _$jscoverage['logging/appenders/appender.js'][39] = 0;
  _$jscoverage['logging/appenders/appender.js'][40] = 0;
  _$jscoverage['logging/appenders/appender.js'][42] = 0;
  _$jscoverage['logging/appenders/appender.js'][57] = 0;
  _$jscoverage['logging/appenders/appender.js'][61] = 0;
  _$jscoverage['logging/appenders/appender.js'][69] = 0;
  _$jscoverage['logging/appenders/appender.js'][70] = 0;
  _$jscoverage['logging/appenders/appender.js'][73] = 0;
  _$jscoverage['logging/appenders/appender.js'][74] = 0;
  _$jscoverage['logging/appenders/appender.js'][75] = 0;
  _$jscoverage['logging/appenders/appender.js'][81] = 0;
  _$jscoverage['logging/appenders/appender.js'][82] = 0;
  _$jscoverage['logging/appenders/appender.js'][87] = 0;
  _$jscoverage['logging/appenders/appender.js'][88] = 0;
  _$jscoverage['logging/appenders/appender.js'][98] = 0;
  _$jscoverage['logging/appenders/appender.js'][102] = 0;
  _$jscoverage['logging/appenders/appender.js'][106] = 0;
}
_$jscoverage['logging/appenders/appender.js'][1]++;
var define = require("../../define.js").define, base = require("../../base"), Level = require("../level");
_$jscoverage['logging/appenders/appender.js'][30]++;
var Appender = (exports = module.exports = define(null, {instance: {constructor: (function (options) {
  _$jscoverage['logging/appenders/appender.js'][35]++;
  options = options || {};
  _$jscoverage['logging/appenders/appender.js'][36]++;
  this.name = options.name || "appender";
  _$jscoverage['logging/appenders/appender.js'][37]++;
  this.pattern = options.pattern || "[{[yyyy-MM-ddTHH:mm:ss:SSS (z)]timeStamp}] {[- 5]levelName} {[-20]name} - {message}";
  _$jscoverage['logging/appenders/appender.js'][38]++;
  var level = options.level;
  _$jscoverage['logging/appenders/appender.js'][39]++;
  if (options.level && (level = Level.toLevel(level))) {
    _$jscoverage['logging/appenders/appender.js'][40]++;
    this.__level = level;
  }
  else {
    _$jscoverage['logging/appenders/appender.js'][42]++;
    this.__level = Level.INFO;
  }
}), append: (function (event) {
  _$jscoverage['logging/appenders/appender.js'][57]++;
  throw new Error("abstract method");
}), _canAppend: (function (event) {
  _$jscoverage['logging/appenders/appender.js'][61]++;
  return event.level.isGreaterOrEqualToo(this.__level);
}), setters: {level: (function (level) {
  _$jscoverage['logging/appenders/appender.js'][69]++;
  if (level && level instanceof Level) {
    _$jscoverage['logging/appenders/appender.js'][70]++;
    this.__level = level;
  }
  else {
    _$jscoverage['logging/appenders/appender.js'][73]++;
    level = Level.toLevel(level);
    _$jscoverage['logging/appenders/appender.js'][74]++;
    if (level) {
      _$jscoverage['logging/appenders/appender.js'][75]++;
      this.__level = level;
    }
  }
}), pattern: (function (patt) {
  _$jscoverage['logging/appenders/appender.js'][81]++;
  if (base.isString(patt)) {
    _$jscoverage['logging/appenders/appender.js'][82]++;
    this.__pattern = patt;
  }
}), name: (function (name) {
  _$jscoverage['logging/appenders/appender.js'][87]++;
  if (base.isString(name)) {
    _$jscoverage['logging/appenders/appender.js'][88]++;
    this.__name = name;
  }
})}, getters: {level: (function () {
  _$jscoverage['logging/appenders/appender.js'][98]++;
  return this.__level;
}), name: (function () {
  _$jscoverage['logging/appenders/appender.js'][102]++;
  return this.__name;
}), pattern: (function () {
  _$jscoverage['logging/appenders/appender.js'][106]++;
  return this.__pattern;
})}}}));
_$jscoverage['logging/appenders/appender.js'].source = ["var define = require(\"../../define.js\").define, base = require(\"../../base\"), Level = require(\"../level\");","","/**"," * @class Base class for all appenders"," *"," * @name Appender"," * @memberOf comb.logging.appenders"," *"," * @param {Object} [options] options to assign to this Appender"," * @param {String} [options.name=\"appender\"] the name of this Appender. If you want two of the same type of appender"," *                                           on a logger it must have a different name."," * @param {String} [options.pattern=\"[{[yyyy-MM-ddTHH:mm:ss:SSS (z)]timeStamp}] {[- 5]levelName} {[-20]name} - {message}\"]"," *  &lt;p&gt;Available Options for formatting see {@link comb.string.format} for formatting options&lt;/p&gt;"," *  &lt;ul&gt;"," *      &lt;li&gt;timeStamp - the timestamp of the event being logged&lt;/li&gt;"," *      &lt;li&gt;level - the {@link comb.logging.Level} of the event&lt;/li&gt;"," *      &lt;li&gt;levelName - the name of the level being logged&lt;/li&gt;"," *      &lt;li&gt;name - the name of the logger logging the event&lt;/li&gt;"," *      &lt;li&gt;message - the message being logged&lt;/li&gt;"," * &lt;/ul&gt;"," * @param {comb.logging.Level|String} [options.level=comb.logging.Level.INFO] the logging level of this appender"," *      &lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; the level can be different from the logger in the case that you want a particular logger"," *      to only log particular event of a level. For example an appender that only logs errors. BEWARE that if the"," *      appenders level is lower than the logger is will not recieve any messages.&lt;/p&gt;"," *"," * @property {String} name the name of this Appender."," * @property {String} pattern the pattern for this Appender."," * @property {comb.logging.Level} level the level of this Appender."," */","var Appender = (exports = module.exports = define(null, {","\t\t\tinstance : {","\t\t\t\t/**@lends comb.logging.appenders.Appender.prototype*/","","\t\t\t\tconstructor : function(options) {","\t\t\t\t\toptions = options || {};","\t\t\t\t\tthis.name = options.name || \"appender\";","\t\t\t\t\tthis.pattern = options.pattern || \"[{[yyyy-MM-ddTHH:mm:ss:SSS (z)]timeStamp}] {[- 5]levelName} {[-20]name} - {message}\";","\t\t\t\t\tvar level = options.level;","\t\t\t\t\tif(options.level &amp;&amp; (level = Level.toLevel(level))){","\t\t\t\t\t\tthis.__level = level;","\t\t\t\t\t}else{","\t\t\t\t\t\tthis.__level = Level.INFO;","\t\t\t\t\t}","\t\t\t\t},","","\t\t\t\t/**","\t\t\t\t * Appends a message to a log.","\t\t\t\t * &lt;b&gt;This method is abstract and must be implemented in subclasses&lt;/b&gt;","\t\t\t\t * @param {Object} event the logging event to log.","\t\t\t\t * @param {Date} event.timeStamp the timeStamp of the event.","\t\t\t\t * @param {comb.logging.Level} level the level of the event.","\t\t\t\t * @param {String} name the name of the logger the event was emitted from.","\t\t\t\t * @param {String} message the message that is being logged.","\t\t\t\t *","\t\t\t\t */","\t\t\t\tappend : function(event) {","\t\t\t\t\tthrow new Error(\"abstract method\");","\t\t\t\t},","","\t\t\t\t_canAppend : function(event) {","\t\t\t\t\treturn event.level.isGreaterOrEqualToo(this.__level);","\t\t\t\t},","","\t\t\t\t/**@ignore*/","\t\t\t\tsetters : {","\t\t\t\t\t/**@ignore*/","","\t\t\t\t\tlevel : function(level) {","\t\t\t\t\t\tif (level &amp;&amp; level instanceof Level) {","\t\t\t\t\t\t\tthis.__level = level;","\t\t\t\t\t\t} else {","\t\t\t\t\t\t\t//try to get the level","\t\t\t\t\t\t\tlevel = Level.toLevel(level);","\t\t\t\t\t\t\tif (level) {","\t\t\t\t\t\t\t\tthis.__level = level;","\t\t\t\t\t\t\t}","\t\t\t\t\t\t}","\t\t\t\t\t},","","\t\t\t\t\tpattern : function(patt){","\t\t\t\t\t\tif(base.isString(patt)){","\t\t\t\t\t\t\tthis.__pattern = patt;","\t\t\t\t\t\t}","\t\t\t\t\t},","","\t\t\t\t\tname : function(name){","\t\t\t\t\t\tif(base.isString(name)){","\t\t\t\t\t\t\tthis.__name = name;","\t\t\t\t\t\t}","\t\t\t\t\t}","\t\t\t\t},","","\t\t\t\t/**@ignore*/","\t\t\t\tgetters : {","\t\t\t\t\t/**@ignore*/","","\t\t\t\t\tlevel : function() {","\t\t\t\t\t\treturn this.__level;","\t\t\t\t\t},","","\t\t\t\t\tname : function() {","\t\t\t\t\t\treturn this.__name;","\t\t\t\t\t},","","\t\t\t\t\tpattern : function(){","\t\t\t\t\t\treturn this.__pattern;","\t\t\t\t\t}","\t\t\t\t}","\t\t\t}","","\t\t}));"];
