[logback-user] logback 1.0 - pickup config change & reconfigure

Sean Kennedy Sean.Kennedy at VHI.IE
Wed Feb 1 17:04:10 CET 2012

I'm trying to get logback to read an external config xml and "scan" it for changes,
I've setup an entry in web.xml and done it via an include..
All looks good when I run it, change is detected in external file , but changes to fillter logging levels are ignored, in fact if I blank the entire external file it's also ignored !!

>From ready various other posts this should be possible , it was fixed in 0.9.16 but perhaps I've missed something fundamental
I've changed the filter up to ERROR and I still get INFO output !!


<configuration scan="true" scanPeriod="10 seconds" debug="true" >
<insertFromJNDI env-entry-name="java:comp/env/logback-file" as="logback-file" />
<include file="${logback-file}" />

Logon.xml  [i.e. external file]

<?xml version="1.0" encoding="UTF-8"?>

  <appender name="A1" class="ch.qos.logback.core.rolling.RollingFileAppender">

    <filter class="ch.qos.logback.classic.filter.ThresholdFilter">


      <pattern>%d{ISO8601} %-5p %c - %m%n</pattern>

    <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">


  <root level="DEBUG">
    <appender-ref ref="A1"/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20120201/356856b3/attachment-0001.html>

More information about the Logback-user mailing list