Changed to only the ‚levels’ option as discussed in #87
This commit is contained in:
parent
25fa48ee8d
commit
e7c0b0da52
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user