ppkarwasz commented on issue #1227:
URL:
https://github.com/apache/logging-log4j2/issues/1227#issuecomment-1405572159
@virajjasani,
Try:
```
appender.ASYA.$0.type = AppenderRef
appender.ASYA.$0.ref = DRFA
```
You chose probably the worst configuration format available. Log4j2
configuration is hierarchical, which can not be said of the properties format.
The properties format basically follows these rules:
* all properties and subcomponents of a Log4j2 component have the same
prefix (in your case `appender.ASYA` for the asynchronous appender),
* simple properties are specified as `prefix.property_name` (e.g.
`appender.ASYA.blocking`),
* subcomponents have a prefix of `parent_prefix.unique_id` (in my example
`appender.ASYA.$0`), must have a `type` property (`appender.ASYA.$0.type =
AppenderRef` in the example) and then you specify the subcomponent's properties
as in the previous points.
**Remark:** some subcomponents, such as layouts or filters have a hardcoded
unique id.
--
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]