pass options to wrapped appender in logLevelFilter
This commit is contained in:
parent
cacade0a37
commit
82950eb965
@ -13,9 +13,9 @@ function logLevelFilter (minLevelString, maxLevelString, appender) {
|
||||
};
|
||||
}
|
||||
|
||||
function configure(config) {
|
||||
function configure(config, options) {
|
||||
log4js.loadAppender(config.appender.type);
|
||||
var appender = log4js.appenderMakers[config.appender.type](config.appender);
|
||||
var appender = log4js.appenderMakers[config.appender.type](config.appender, options);
|
||||
return logLevelFilter(config.level, config.maxLevel, appender);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user