Add custom log4j2 appender for Karaf and Pax Logging in rootLogger

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Add custom log4j2 appender for Karaf and Pax Logging in rootLogger

Honey Goyal
I am trying to add new custom log4j2 appender. Karaf 3.0.2 use pax-logging 1.7.4 which does not support log4j2. I have a appender which extend org.apache.logging.log4j.core.appender.AbstractAppender.


I followed this blog http://blog.nanthrax.net/2012/12/create-custom-log4j-appender-for-karaf-and-pax-logging/ writen by Jean-Baptiste. It will not work because my appender is written in log4j2.

What are the alternatives so that karaf also log using this appender?

Thanks,
Honey Goyal