How to make a Pax entry to use the loggback config instead of the standard log4j properties like syntax
I have some services in tomcat and trying to go to apache karaf.
I have an existing service that uses logback to log the configuration.
I tried to do the same config in osgi but couldn't achieve. Anyone please let me know what could be the problem?
org.ops4j.pax.logging.cfg
org.ops4j.pax.logging.logback.config.file=${karaf.home}/etc/logback.xml
logback.xml is available in $ {karaf.home} / etc / -.
Apache Karaf version: 3.0, pax logging 1.7.1, which is packaged with karaf from assembly.
After changing the configuration my karaf.log content is:
Jul 02, 2014 4:21:32 PM org.apache.karaf.main.lock.SimpleFileLock lock
.....................................................................
INFO: Lock acquired
Jul 02, 2014 4:21:32 PM org.apache.karaf.main.Main$KarafLockCallback lockAquired
INFO: Lock acquired. Setting startlevel to 100
0
source to share