karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Carman <ja...@carmanconsulting.com>
Subject Using Custom Layout for Log4j2 in Karaf 4.1.x...
Date Tue, 23 May 2017 23:03:08 GMT
I am trying to use a custom layout and I'm following the examples (I
think).  We had one that worked in Karaf 3.0.x.  Anyway, I set up the
fragment host like this:

<plugin>
  <groupId>org.apache.felix</groupId>
  <artifactId>maven-bundle-plugin</artifactId>
  <version>3.3.0</version>
  <extensions>true</extensions>
  <inherited>true</inherited>
  <configuration>
    <instructions>

<Fragment-Host>org.ops4j.pax.logging.pax-logging-service</Fragment-Host>
    </instructions>
  </configuration>
</plugin>

However, my bundle will not resolve this way. I don't see that bundle being
loaded in Karaf 4.1.1:
 karaf@root()> list -t 0 -s | grep -i log 19:01:18
 5 │ Active │ 8 │ 1.9.1 │ org.ops4j.pax.logging.pax-logging-api
 6 │ Active │ 8 │ 1.9.1 │ org.ops4j.pax.logging.pax-logging-log4j2
36 │ Active │ 30 │ 4.1.1 │ org.apache.karaf.log.core

I tried binding to "org.ops4j.pax.logging.pax-logging-api", but that didn't
work either.  Did this process change for 4.1.x?

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message