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_______________________________________________
Logback-user mailing list
[email protected]
http://qos.ch/mailman/listinfo/logback-user