Linked Questions

Popular Questions

I have created a custom appender in log4j2 (which works fine). And I bring up this custom appender implementation as a feature in karaf container (whenever I need). Once I install I will add custom appender in configurations in "org.ops4j.pax.logging.cfg".

My problem is when I reboot the karaf container, the custom appender bundle comes at the later point of time, but log4j2 reads the configurations(that has the appender configurations) at the earliest, and hence I get the error saying something like "no appenders found". And my primary karaf log also stops working, :(

So is there any way to ignore the appender configurations if appender is not present. Or any other workaround?

Thanks in advance.

Related Questions