Merge pull request #243 from laenger/master

pass options to wrapped appender in logLevelFilter
This commit is contained in:
Gareth Jones 2014-09-11 09:16:46 +10:00
commit c753fe37bb

View File

@ -13,9 +13,9 @@ function logLevelFilter (minLevelString, maxLevelString, appender) {
}; };
} }
function configure(config) { function configure(config, options) {
log4js.loadAppender(config.appender.type); 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); return logLevelFilter(config.level, config.maxLevel, appender);
} }