virajjasani commented on issue #1227:
URL:
https://github.com/apache/logging-log4j2/issues/1227#issuecomment-1411208411
@ppkarwasz
```
appender.ASYA.$0.type = AppenderRef
appender.ASYA.$0.ref = DRFA
```
Are you aware of log4j1.properties alternatives for the above?
```
log4j.appender.RFA=org.apache.log4j.RollingFileAppender
log4j.appender.RFA.File=${hadoop.log.dir}/datanode-metrics.log
log4j.appender.RFA.layout=org.apache.log4j.PatternLayout
log4j.appender.RFA.layout.ConversionPattern=%d{ISO8601} %m%n
log4j.appender.RFA.MaxBackupIndex=1
log4j.appender.RFA.MaxFileSize=64MB
log4j.appender.ASYNC=org.apache.log4j.AsyncAppender
log4j.appender.ASYNC.appender-ref=RFA
log4j.logger.classname=INFO,ASYNC
log4j.additivity.classname=false
```
I tried this but it says `log4j:WARN No such property [appender-ref] in
org.apache.log4j.AsyncAppender.`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]