<div dir="ltr">Hi all,<div><br></div><div>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:</div><div><br></div><div><br></div><div><div><appender name="file" class="ch.qos.logback.core.FileAppender"></div><div> <file>/data/data/com.example/files/log/foo.log</file></div><div> <encoder></div><div> <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern></div><div> </encoder></div><div> </appender></div></div><div><br></div><div><div style="font-size:14px"> <logger name="org.springframework" level="DEBUG" additivity="false"></div><div style="font-size:14px"><span style="white-space:pre-wrap"> </span><appender-ref ref="file" /></div><div style="font-size:14px"> </logger></div><div style="font-size:14px"><br></div><div style="font-size:14px">Any advice?</div></div><div><br></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Best regards,<div><br></div><div>Jinge Dai</div></div></div>
</div>