How to create a keyvalue pair in log4j2 in a propterties file?
I know that in log4j version 1 this is done as:
log4j.appender.x.additionalFields={'key': 'value'}
and the XML method for it in log4j2:
<KeyValuePair key="key" value="value"/>
so this is the way to do it for the properties file as follows:
`appender.x.keyValuePair ={'key': 'value'}`
?
source
share