Hi You should not get this file from original jar - it has to be generated using Maven configuration of two Maven plugins:
- maven-compiler-plugin to configure org.apache.logging.log4j.core.config.plugins.processor.PluginProcessor - maven-bundle-plugin to ensure resource mapping: META-INF/org/apache/logging/log4j/core/config/plugins/Log4j2Plugins.dat=target/classes/META-INF/org/apache/logging/log4j/core/config/plugins/Log4j2Plugins.dat See: https://github.com/ops4j/org.ops4j.pax.logging/blob/main/pax-logging-samples/fragment-log4j2/pom.xml#L41-L77 regards Grzegorz Grzybek pt., 17 maj 2024 o 19:28 Matthias Leinweber <[email protected]> napisał(a): > Ok, it doesn't seem so complicated.. Anyway, my java skills are a bit > outdated. Working with private-package looks good in the first place. But > how do I get the Log4j2Plugins.dat out of the original jar into my bundle? > > On Fri, 17 May 2024 at 16:55, Grzegorz Grzybek <[email protected]> > wrote: > >> Hello >> >> You can find a sample fragment here: >> https://github.com/ops4j/org.ops4j.pax.logging/tree/main/pax-logging-samples/fragment-log4j2 >> That's all there is ;( >> >> regards >> Grzegorz Grzybek >> >> pt., 17 maj 2024 o 16:26 Matthias Leinweber <[email protected]> >> napisał(a): >> >>> Hello Karaf Team, >>> >>> is it possible to directly add a custom log4j2 appender via wrap >>> protocol? >>> >>> I added log4j2.packages = pl.tkowalcz.tjahzi.log4j2 to >>> org.ops4j.pax.logging.cfg but i get ERROR : Unable to locate plugin for Loki >>> >>> I fear that i have to build a fragment bundle for pax logging .. if yes >>> where can i find some doc? >>> >>> br. >>> Matthias >>> >> > > >
