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:[email protected]] On Behalf Of Money Dai
Sent: Monday, August 24, 2015 7:06 AM
To: [email protected]
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
_______________________________________________
Logback-user mailing list
[email protected]
http://mailman.qos.ch/mailman/listinfo/logback-user

Reply via email to