we upgraded OSGI KARAF to 4.1.x version and with that default pax-logging-api implementation has been changed to Log4J2 from log4j1.
earlier with log4j1, we used to have a custom appender which extends fileappender and takes the configuration from CFG file. we do compile this appender as fragment and provide the fragment-host bundle as pax-logging-service for getting loaded.
Now with log4J2, creating custom appender very different it seems. I went through this question How to Create a Custom Appender in log4j2?
which is very helpful but I am not completely unclear on how it will get loaded now?
how will it take the configuration parameters like it was earlier taking from CFG file?
Can we still use as fragment and mention fragment-host bundle here also to get it working?
Regards Munish