[logback-user] Turn the log of android spring to debug

Paul Krause pkrause at investsoftech.com
Mon Aug 24 17:59:44 CEST 2015


You need to install bridges to SLF4J from whatever logging implementations are in use by your third-party libraries.
See http://www.slf4j.org/legacy.html

From: Logback-user [mailto:logback-user-bounces at qos.ch] On Behalf Of Money Dai
Sent: Monday, August 24, 2015 7:06 AM
To: logback-user at qos.ch
Subject: [logback-user] Turn the log of android spring to debug

Hi all,

I have a Android project which is using logback+slf4j. I am able to get the logs of the my classes, which have slf4j loggers. But is it possible to enable the debug log for the 3-party library. Specifically, I want to turn the log of android spring to debug. I tried the configuration as below but it does not work:


<appender name="file" class="ch.qos.logback.core.FileAppender">
    <file>/data/data/com.example/files/log/foo.log</file>
    <encoder>
      <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
    </encoder>
  </appender>

    <logger name="org.springframework" level="DEBUG" additivity="false">
<appender-ref ref="file" />
   </logger>

Any advice?


--
Best regards,

Jinge Dai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20150824/73701b40/attachment.html>


More information about the Logback-user mailing list