
As you are probably already aware, ReconfigureOnChangeFilter does not know how to handle URLs of type "vfsfile://", i.e. JBoss' virtual file system. Excplicitly setting the path to the configuration file with logback.configurationFile=file:///path seems like a reasonable approach. Cheers, On 15.04.2013 09:27, KNair wrote:
Hi
I think that has helped me to nail the issue, Thanks a lot In Logs
SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [vfszip:/D:/myapps/apps/jbossback/jboss-5.1.0.GA_BE/jboss-5.1.0.GA_BE/server/default/lib/logback-classic-1.0.11.jar/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [vfszip:/D:/myapps/apps/jbossback/jboss-5.1.0.GA_BE/jboss-5.1.0.GA_BE/common/lib/slf4j-jboss-logging.jar/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. 11:14:33,784 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy] 11:14:33,791 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml] 11:14:33,792 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [vfsfile:/D:/myapps/apps/jbossback/jboss-5.1.0.GA_BE/jboss-5.1.0.GA_BE/server/default/conf/logback.xml] 11:14:33,851 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@9fb5f1 - URL [vfsfile:/D:/myapps/apps/jbossback/jboss-5.1.0.GA_BE/jboss-5.1.0.GA_BE/server/default/conf/logback.xml] is not of type file 11:14:33,784 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy] 11:14:33,791 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml] 11:14:33,792 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [vfsfile:/D:/myapps/apps/jbossback/jboss-5.1.0.GA_BE/jboss-5.1.0.GA_BE/server/default/conf/logback.xml] 11:14:33,851 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@9fb5f1 - URL [vfsfile:/D:/myapps/apps/jbossback/jboss-5.1.0.GA_BE/jboss-5.1.0.GA_BE/server/default/conf/logback.xml] *is not of type file* 11:14:33,959 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - Setting ReconfigureOnChangeFilter scanning period to 30 seconds 11:14:33,959 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - Setting ReconfigureOnChangeFilter scanning period to 30 seconds 11:14:33,959 |-INFO in ReconfigureOnChangeFilter{invocationCounter=0} - Will scan for changes in *[[]] *every 30 seconds. 11:14:33,959 |-INFO in ReconfigureOnChangeFilter{invocationCounter=0} - Will scan for changes in [[]] every 30 seconds. 11:14:33,960 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - Adding ReconfigureOnChangeFilter as a turbo filter 11:14:33,960 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - Adding ReconfigureOnChangeFilter as a turbo filter 11:14:33,966 |-INFO in ch.qos.logback.classic.joran.action.JMXConfiguratorAction - begin 11:14:33,966 |-INFO in ch.qos.logback.classic.joran.action.JMXConfiguratorAction - begin 11:14:33,974 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender] 11:14:33,974 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender] 11:14:33,993 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [FILE] 11:14:33,993 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [FILE] 11:14:34,164 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - No compression will be used 11:14:34,164 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - No compression will be used 11:14:34,179 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - Will use the pattern logFile.%d{yyyy-MM-dd}.log for the active file 11:14:34,179 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - Will use the pattern logFile.%d{yyyy-MM-dd}.log for the active file 11:14:34,195 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - The date pattern is 'yyyy-MM-dd' from file name pattern 'logFile.%d{yyyy-MM-dd}.log'.
Now in property-service.xml (Jboss) i set <attribute name="Properties">
logback.statusListenerClass=ch.qos.logback.core.status.OnConsoleStatusListener
logback.configurationFile=file:///D:/myapps/jboss-5.1.0.GA_BE/jboss-5.1.0.GA_BE/server/default/conf/logback.xml
</attribute>
It's reloading on the fly :) Is this the right approach?
Thanks
K Nair
-- View this message in context: http://logback.10977.n7.nabble.com/JBoss-logback-scan-true-not-reloading-the... Sent from the Users mailing list archive at Nabble.com. _______________________________________________ Logback-user mailing list Logback-user@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-user
-- Ceki 65% of statistics are made up on the spot