pass options to wrapped appender in logLevelFilter

This commit is contained in:
Christian Langer 2014-09-09 03:28:02 +02:00
parent cacade0a37
commit 82950eb965

View File

@ -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);
}