[logback-user] Logback does not change log level in runtime

Neda Danilovic danilovic.neda at gmail.com
Fri Aug 3 16:14:17 CEST 2018


Hello,

I use logback for my android app.
This is my logback.xml file

<configuration debug="true" scan="true" scanPeriod="2 seconds">

<include file="${EXT_DIR}/Download/XXX/assets/logbackincludedfile.xml" />

<root level="${root.level:-DEBUG}">
    <appender-ref ref="logcat" />
    <appender-ref ref="logstash" />
    <appender-ref ref="rollingLogFile" />
</root>


logbackincludedfile.xml

<included>
  <property name="root.level" value="DEBUG" />
</included>

But it can not change log level in runtime. I have to restart my android
app and then it works.

What should I do, to make it work in runtime?

I use logback-android

com.github.tony19:logback-android:1.1.1-12


Regards,
Neda
-- 
Neda Danilović
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20180803/6c27f3e7/attachment.html>


More information about the logback-user mailing list