[logback-user] Are included files scanned

Rosarin Jolly Roy rosarinjroy at hotmail.com
Sat Apr 24 04:19:14 CEST 2010


I have a top-level config file logback.xml and another file logback-included.xml. If I set the scan=true in the logback.xml file, will the included file also be scanned for changes? Is scan=true applicable for <included> tag as well? I find that the scanning doesn't happen, when I change the included file. Should I do anything special?

--- logback.xml ---
<configuration scan="true">
    <include file="logback-included.xml" />
</configuration>

--- logback-included.xml ---
<included scan="true">
      <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
        <file>mylog.log</file>
        <rollingPolicy  class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
          <FileNamePattern>mylog.log.%d{yyyy-MM-dd}</FileNamePattern>
        </rollingPolicy>
        <encoder>
          <pattern>%date %level [%thread] %logger{15} %msg%n</pattern>
        </encoder>
      </appender>
    
      <root>
        <level value="DEBUG" />
        <appender-ref ref="FILE" />
      </root>
</included>
 		 	   		  
_________________________________________________________________
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://qos.ch/pipermail/logback-user/attachments/20100423/ff7fe87d/attachment.html>


More information about the Logback-user mailing list