Hi JB,
In Log4J2,.XML, I was using pattern layout and it has %spi%n to have some
masking logic before logging. I have written plugin's which extend
LogEventPatternConverter to do some masking before logging.
I have added some additional headers / footers also through plugin's.
Hi Munish,
log4j2 backend with pax-logging doesn't mean you have to use XML
configuration format.
Using config.file with XML has two limitations:
1. It doesn't reload automatically when you change the XML, you have to
reload pax logging
2. You can't change the XML directly using config:* commands
Hi,
Earlier with Log4J, we used to change "org.ops4j.pax.logging.cfg" for
changing any configuration like compression etc by using karaf commands.
config:edit org.ops4j.pax.logging
property-set
config:update
with Log4J2, now entire configuration is in log4j2.xml and
org.ops4j.pa