fix: pass options from multiprocess appender to inner appender

This commit is contained in:
Mário Freitas 2013-02-21 00:06:59 +09:00
parent a15a628311
commit 8e53c6213e

View File

@ -115,11 +115,11 @@ function createAppender(config) {
}
}
function configure(config) {
function configure(config, options) {
var actualAppender;
if (config.appender && config.mode === 'master') {
log4js.loadAppender(config.appender.type);
actualAppender = log4js.appenderMakers[config.appender.type](config.appender);
actualAppender = log4js.appenderMakers[config.appender.type](config.appender, options);
config.actualAppender = actualAppender;
}
return createAppender(config);