Changed to only the ‚levels’ option as discussed in #87

This commit is contained in:
Rolf Koenders 2014-01-22 20:13:36 +01:00
parent 25fa48ee8d
commit e7c0b0da52

View File

@ -176,9 +176,7 @@ function configureLevels(levels) {
}
function setGlobalLogLevel(level) {
if(level) {
Logger.prototype.level = levels.toLevel(level, levels.TRACE);
}
Logger.prototype.level = levels.toLevel(level, levels.TRACE);
}
/**
@ -204,7 +202,6 @@ function configureOnceOff(config, options) {
try {
configureAppenders(config.appenders, options);
configureLevels(config.levels);
setGlobalLogLevel(config.globalLevel);
if (config.replaceConsole) {
replaceConsole();