I am trying to use Apache Sling logging in an Equinox project. It works fine, but I can't get Sling to use my configuration file. I am using the standard xml configuration, which should work according to the Sling documentation . But no matter where I put the configuration file, Sling just doesn't use it.
My log configuration is as follows:
<?xml version="1.0" encoding="UTF-8"?> <configuration> <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> <encoder> <pattern>%d{dd.MM.yyyy HH:mm:ss.SSS} *%level* [%thread] %logger %message%n</pattern> </encoder> </appender> <root level="debug"> <appender-ref ref="CONSOLE" /> </root> </configuration>
java logback osgi equinox sling
Ian schmits
source share