/* automatically generated by JSCoverage - do not edit */
if (typeof _$jscoverage === 'undefined') _$jscoverage = {};
if (! _$jscoverage['logging/level.js']) {
  _$jscoverage['logging/level.js'] = [];
  _$jscoverage['logging/level.js'][1] = 0;
  _$jscoverage['logging/level.js'][3] = 0;
  _$jscoverage['logging/level.js'][14] = 0;
  _$jscoverage['logging/level.js'][51] = 0;
  _$jscoverage['logging/level.js'][56] = 0;
  _$jscoverage['logging/level.js'][57] = 0;
  _$jscoverage['logging/level.js'][67] = 0;
  _$jscoverage['logging/level.js'][68] = 0;
  _$jscoverage['logging/level.js'][69] = 0;
  _$jscoverage['logging/level.js'][70] = 0;
  _$jscoverage['logging/level.js'][73] = 0;
  _$jscoverage['logging/level.js'][84] = 0;
  _$jscoverage['logging/level.js'][100] = 0;
  _$jscoverage['logging/level.js'][101] = 0;
  _$jscoverage['logging/level.js'][102] = 0;
  _$jscoverage['logging/level.js'][103] = 0;
  _$jscoverage['logging/level.js'][104] = 0;
  _$jscoverage['logging/level.js'][105] = 0;
  _$jscoverage['logging/level.js'][106] = 0;
  _$jscoverage['logging/level.js'][107] = 0;
  _$jscoverage['logging/level.js'][108] = 0;
  _$jscoverage['logging/level.js'][109] = 0;
  _$jscoverage['logging/level.js'][110] = 0;
  _$jscoverage['logging/level.js'][113] = 0;
  _$jscoverage['logging/level.js'][115] = 0;
  _$jscoverage['logging/level.js'][138] = 0;
  _$jscoverage['logging/level.js'][139] = 0;
  _$jscoverage['logging/level.js'][140] = 0;
  _$jscoverage['logging/level.js'][141] = 0;
  _$jscoverage['logging/level.js'][142] = 0;
  _$jscoverage['logging/level.js'][143] = 0;
  _$jscoverage['logging/level.js'][145] = 0;
  _$jscoverage['logging/level.js'][184] = 0;
  _$jscoverage['logging/level.js'][185] = 0;
}
_$jscoverage['logging/level.js'][1]++;
var define = require("../define.js").define, base = require("../base");
_$jscoverage['logging/level.js'][3]++;
var LEVELS = {ALL: -100000, DEBUG: 1, TRACE: 2, INFO: 3, WARN: 4, ERROR: 5, FATAL: 6, OFF: 100000};
_$jscoverage['logging/level.js'][14]++;
var LEVELS_REVERSE = {"-100000": "ALL", "1": "DEBUG", "2": "TRACE", "3": "INFO", "4": "WARN", "5": "ERROR", "6": "FATAL", "100000": "OFF"};
_$jscoverage['logging/level.js'][51]++;
var Level = (exports = module.exports = define(null, {instance: {constructor: (function (level, name) {
  _$jscoverage['logging/level.js'][56]++;
  this.level = level;
  _$jscoverage['logging/level.js'][57]++;
  this.name = name;
}), isGreaterOrEqualToo: (function (level) {
  _$jscoverage['logging/level.js'][67]++;
  var ret = false;
  _$jscoverage['logging/level.js'][68]++;
  if (level && level instanceof Level) {
    _$jscoverage['logging/level.js'][69]++;
    if (this.level >= level.level) {
      _$jscoverage['logging/level.js'][70]++;
      ret = true;
    }
  }
  _$jscoverage['logging/level.js'][73]++;
  return ret;
}), equals: (function (level) {
  _$jscoverage['logging/level.js'][84]++;
  return level.level == this.level;
})}, static: {toLevel: (function (level, defaultLevel) {
  _$jscoverage['logging/level.js'][100]++;
  var ret = null;
  _$jscoverage['logging/level.js'][101]++;
  var args = base.argsToArray(arguments);
  _$jscoverage['logging/level.js'][102]++;
  if (args.length === 1) {
    _$jscoverage['logging/level.js'][103]++;
    var level = args[0];
    _$jscoverage['logging/level.js'][104]++;
    if (level instanceof Level) {
      _$jscoverage['logging/level.js'][105]++;
      ret = level;
    }
    else {
      _$jscoverage['logging/level.js'][106]++;
      if (base.isNumber(level)) {
        _$jscoverage['logging/level.js'][107]++;
        var strLevel = LEVELS_REVERSE[level];
        _$jscoverage['logging/level.js'][108]++;
        ret = Level[strLevel];
      }
      else {
        _$jscoverage['logging/level.js'][109]++;
        if (base.isString(level)) {
          _$jscoverage['logging/level.js'][110]++;
          ret = Level[level.toUpperCase()];
        }
      }
    }
  }
  else {
    _$jscoverage['logging/level.js'][113]++;
    ret = (Level.toLevel(args[0]) || args[1]);
  }
  _$jscoverage['logging/level.js'][115]++;
  return ret;
}), addLevel: (function (label, level) {
  _$jscoverage['logging/level.js'][138]++;
  var ret;
  _$jscoverage['logging/level.js'][139]++;
  if (base.isString(label) && base.isNumber(level)) {
    _$jscoverage['logging/level.js'][140]++;
    label = label.toUpperCase();
    _$jscoverage['logging/level.js'][141]++;
    LEVELS_REVERSE[level] = label;
    _$jscoverage['logging/level.js'][142]++;
    LEVELS[label] = level;
    _$jscoverage['logging/level.js'][143]++;
    ret = (this[label] = new Level(level, label));
  }
  _$jscoverage['logging/level.js'][145]++;
  return ret;
}), ALL: null, DEBUG: null, TRACE: null, INFO: null, WARN: null, ERROR: null, FATAL: null, OFF: null}}));
_$jscoverage['logging/level.js'][184]++;
for (var i in LEVELS_REVERSE) {
  _$jscoverage['logging/level.js'][185]++;
  Level[LEVELS_REVERSE[i]] = new Level(parseInt(i, 10), LEVELS_REVERSE[i]);
}
_$jscoverage['logging/level.js'].source = ["var define = require(\"../define.js\").define, base = require(\"../base\");","","var LEVELS = {","\tALL : -100000,","\tDEBUG : 1,","\tTRACE : 2,","\tINFO : 3,","\tWARN :4,","\tERROR : 5,","\tFATAL:6,","\tOFF : 100000","};","","var LEVELS_REVERSE = {","\t\"-100000\" : \"ALL\",","\t\"1\" : \"DEBUG\",","\t\"2\" : \"TRACE\",","\t\"3\" : \"INFO\",","\t\"4\": \"WARN\",","\t\"5\" : \"ERROR\",","\t\"6\" : \"FATAL\",","\t\"100000\" : \"OFF\"","};","","/**"," * @class Level class used to describe logging levels. The levels determine what types of events are logged to the appenders"," *  for example the if Level.ALL is used then all event will be logged, however if Level.INFO was used then &lt;b&gt;ONLY&lt;/b&gt;"," *  INFO, WARN, ERROR, and FATAL events will be logged. To turn off logging for a logger use Level.OFF."," *"," * &lt;p&gt;&lt;b&gt;Not typically instantiated directly, but through staticly defined levels&lt;/b&gt;&lt;/p&gt;"," * @example"," * //Levels in ascending order"," * comb.logging.Level.ALL"," * comb.logging.Level.DEBUG"," * comb.logging.Level.TRACE"," * comb.logging.Level.INFO"," * comb.logging.Level.WARN"," * comb.logging.Level.ERROR"," * comb.logging.Level.FATAL"," * comb.logging.Level.OFF"," *"," * //or"," * Level.getLevel(\"INFO\");"," *"," * @name Level"," * @memberOf comb.logging"," *"," * @property {Number} level the numerical representation of this level."," * @property {String} name the name of level."," */","var Level = (exports = module.exports = define(null, {","\t\t\tinstance : {","\t\t\t\t/**@lends comb.logging.Level.prototype*/","","\t\t\t\tconstructor : function(level, name) {","\t\t\t\t\tthis.level = level;","\t\t\t\t\tthis.name = name;","\t\t\t\t},","","\t\t\t\t/**","\t\t\t\t * Determing if this level is &gt;= another level","\t\t\t\t * @param {comb.logging.Level} level the level to test against","\t\t\t\t *","\t\t\t\t * @returns {Boolean} true if this is &gt;= false otherwise.","\t\t\t\t */","\t\t\t\tisGreaterOrEqualToo : function(level) {","\t\t\t\t\tvar ret = false;","\t\t\t\t\tif (level &amp;&amp; level instanceof Level) {","\t\t\t\t\t\tif (this.level &gt;= level.level) {","\t\t\t\t\t\t\tret = true;","\t\t\t\t\t\t}","\t\t\t\t\t}","\t\t\t\t\treturn ret;","\t\t\t\t},","","\t\t\t\t/**","\t\t\t\t * Determing if this level is equal to another level based off of the numerical rank.","\t\t\t\t *","\t\t\t\t * @param {comb.logging.Level} level the level to compare","\t\t\t\t *","\t\t\t\t * @returns {Boolean} true if this is equal to that false otherwise.","\t\t\t\t */","\t\t\t\tequals : function(level) {","\t\t\t\t\treturn level.level == this.level;","\t\t\t\t}","\t\t\t},","\t\t\tstatic : {","\t\t\t\t/**@lends comb.logging.Level*/","","\t\t\t\t/**","\t\t\t\t * Converts a numerical or string representation of a level, if a default level is provided,","\t\t\t\t * then if a level cannot be determined then the default level is used.","\t\t\t\t *","\t\t\t\t * @param {Number|String|comb.logging.Level} level the level to try to convert","\t\t\t\t * @param {comb.logging.Level} [defaultLevel] default level to use if one cannot be determined,","\t\t\t\t *","\t\t\t\t * @returns {comb.logging.Level|null} returns a level if one can be determined null otherwise.","\t\t\t\t */","\t\t\t\ttoLevel : function(level, defaultLevel) {","\t\t\t\t\tvar ret = null;","\t\t\t\t\tvar args = base.argsToArray(arguments);","\t\t\t\t\tif (args.length === 1) {","\t\t\t\t\t\tvar level = args[0];","\t\t\t\t\t\tif (level instanceof Level) {","\t\t\t\t\t\t\tret = level;","\t\t\t\t\t\t} else if (base.isNumber(level)) {","\t\t\t\t\t\t\tvar strLevel = LEVELS_REVERSE[level];","\t\t\t\t\t\t\tret = Level[strLevel];","\t\t\t\t\t\t} else if (base.isString(level)) {","\t\t\t\t\t\t\tret = Level[level.toUpperCase()];","\t\t\t\t\t\t}","\t\t\t\t\t} else {","\t\t\t\t\t\tret = (Level.toLevel(args[0]) || args[1]);","\t\t\t\t\t}","\t\t\t\t\treturn ret;","\t\t\t\t},","","                /**","                 * Adds a new level to the Level object.","                 *","                 * @example","                 *","                 * logger = Logger.getLogger(\"my.logger\");","                 *","                 * //create the custom level","                 * Level.addLevel(\"custom_Level\", 20);","                 *","                 * //now set the level on a logger","                 * logger.level = Level.CUSTOM_LEVEL;","                 *","                 * @param {string} label the label of the level, &lt;b&gt;Note:&lt;/b&gt; the label will be coverted to uppercase.","                 * @param {number} level the level of the level","                 *","                 * @return {undefined|comb.logging.Level} the level that was created.","                 *","                 */","                addLevel : function(label, level){","                    var ret;","                    if(base.isString(label) &amp;&amp; base.isNumber(level)){","                        label = label.toUpperCase();","                        LEVELS_REVERSE[level] = label;","                        LEVELS[label] = level;","                        ret = (this[label] = new Level(level, label));","                    }","                    return ret;","                },","","\t\t\t\t/**","\t\t\t\t * Level to allow logging of all events.","\t\t\t\t */","\t\t\t\tALL : null,","\t\t\t\t/**","\t\t\t\t * Logs only events debug or greater.","\t\t\t\t */","\t\t\t\tDEBUG : null,","\t\t\t\t/**","\t\t\t\t * Like debug but provides a finer level of detail","\t\t\t\t */","\t\t\t\tTRACE : null,","\t\t\t\t/**","\t\t\t\t * Only info, or error related events","\t\t\t\t */","\t\t\t\tINFO : null,","\t\t\t\t/**","\t\t\t\t * Only warn or error related events","\t\t\t\t */","\t\t\t\tWARN : null,","\t\t\t\t/**","\t\t\t\t * Error or fatal events","\t\t\t\t */","\t\t\t\tERROR : null,","\t\t\t\t/**","\t\t\t\t * Only fatal events","\t\t\t\t */","\t\t\t\tFATAL : null,","\t\t\t\t/**","\t\t\t\t * No events will be logged.","\t\t\t\t */","\t\t\t\tOFF : null","","\t\t\t}","\t\t}));","","for (var i in LEVELS_REVERSE) {","\tLevel[LEVELS_REVERSE[i]] = new Level(parseInt(i, 10), LEVELS_REVERSE[i]);","}"];
