Merge pull request #243 from laenger/master
pass options to wrapped appender in logLevelFilter
This commit is contained in:
commit
c753fe37bb
@ -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