fix: pass options from multiprocess appender to inner appender
This commit is contained in:
parent
a15a628311
commit
8e53c6213e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user