/* automatically generated by JSCoverage - do not edit */
if (typeof _$jscoverage === 'undefined') _$jscoverage = {};
if (! _$jscoverage['appenders/logLevelFilter.js']) {
  _$jscoverage['appenders/logLevelFilter.js'] = [];
  _$jscoverage['appenders/logLevelFilter.js'][1] = 0;
  _$jscoverage['appenders/logLevelFilter.js'][2] = 0;
  _$jscoverage['appenders/logLevelFilter.js'][5] = 0;
  _$jscoverage['appenders/logLevelFilter.js'][6] = 0;
  _$jscoverage['appenders/logLevelFilter.js'][7] = 0;
  _$jscoverage['appenders/logLevelFilter.js'][8] = 0;
  _$jscoverage['appenders/logLevelFilter.js'][9] = 0;
  _$jscoverage['appenders/logLevelFilter.js'][14] = 0;
  _$jscoverage['appenders/logLevelFilter.js'][15] = 0;
  _$jscoverage['appenders/logLevelFilter.js'][16] = 0;
  _$jscoverage['appenders/logLevelFilter.js'][17] = 0;
  _$jscoverage['appenders/logLevelFilter.js'][20] = 0;
  _$jscoverage['appenders/logLevelFilter.js'][21] = 0;
}
_$jscoverage['appenders/logLevelFilter.js'][1]++;
"use strict";
_$jscoverage['appenders/logLevelFilter.js'][2]++;
var levels = require("../levels"), log4js = require("../log4js");
_$jscoverage['appenders/logLevelFilter.js'][5]++;
function logLevelFilter(levelString, appender) {
  _$jscoverage['appenders/logLevelFilter.js'][6]++;
  var level = levels.toLevel(levelString);
  _$jscoverage['appenders/logLevelFilter.js'][7]++;
  return (function (logEvent) {
  _$jscoverage['appenders/logLevelFilter.js'][8]++;
  if (logEvent.level.isGreaterThanOrEqualTo(level)) {
    _$jscoverage['appenders/logLevelFilter.js'][9]++;
    appender(logEvent);
  }
});
}
_$jscoverage['appenders/logLevelFilter.js'][14]++;
function configure(config) {
  _$jscoverage['appenders/logLevelFilter.js'][15]++;
  log4js.loadAppender(config.appender.type);
  _$jscoverage['appenders/logLevelFilter.js'][16]++;
  var appender = log4js.appenderMakers[config.appender.type](config.appender);
  _$jscoverage['appenders/logLevelFilter.js'][17]++;
  return logLevelFilter(config.level, appender);
}
_$jscoverage['appenders/logLevelFilter.js'][20]++;
exports.appender = logLevelFilter;
_$jscoverage['appenders/logLevelFilter.js'][21]++;
exports.configure = configure;
_$jscoverage['appenders/logLevelFilter.js'].source = ["\"use strict\";","var levels = require('../levels')",", log4js = require('../log4js');","","function logLevelFilter (levelString, appender) {","  var level = levels.toLevel(levelString);","  return function(logEvent) {","    if (logEvent.level.isGreaterThanOrEqualTo(level)) {","      appender(logEvent);","    }","  };","}","","function configure(config) {","  log4js.loadAppender(config.appender.type);","  var appender = log4js.appenderMakers[config.appender.type](config.appender);","  return logLevelFilter(config.level, appender);","}","","exports.appender = logLevelFilter;","exports.configure = configure;"];
