[JIRA] Created: (LBCLASSIC-247) ConfigurationWatchList produces a warinig a correct configuration

ConfigurationWatchList produces a warinig a correct configuration ----------------------------------------------------------------- Key: LBCLASSIC-247 URL: http://jira.qos.ch/browse/LBCLASSIC-247 Project: logback-classic Issue Type: Bug Components: joran Affects Versions: 0.9.28 Reporter: Michael Franz Assignee: Logback dev list I get the following warning for included files: 12:09:40,657 |-WARN in ch.qos.logback.core.joran.util.ConfigurationWatchListUtil@7c959fa1 - Null ConfigurationWatchList. Cannot add file:/D:/dev/.../logback-lilith.xml Scanning is off. I configure logback in the following way: JoranConfigurator configurator = new JoranConfigurator(); configurator.setContext(loggerContext); loggerContext.reset(); configurator.doConfigure(new ByteArrayInputStream(config.getBytes("UTF-8"))); The generated main configuration (variable config) contains mainly includes to files within the file system. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira

[ http://jira.qos.ch/browse/LBCLASSIC-247?page=com.atlassian.jira.plugin.syste... ] Ceki Gulcu reassigned LBCLASSIC-247: ------------------------------------ Assignee: Ceki Gulcu (was: Logback dev list)
ConfigurationWatchList produces a warinig a correct configuration -----------------------------------------------------------------
Key: LBCLASSIC-247 URL: http://jira.qos.ch/browse/LBCLASSIC-247 Project: logback-classic Issue Type: Bug Components: joran Affects Versions: 0.9.28 Reporter: Michael Franz Assignee: Ceki Gulcu
I get the following warning for included files: 12:09:40,657 |-WARN in ch.qos.logback.core.joran.util.ConfigurationWatchListUtil@7c959fa1 - Null ConfigurationWatchList. Cannot add file:/D:/dev/.../logback-lilith.xml Scanning is off. I configure logback in the following way: JoranConfigurator configurator = new JoranConfigurator(); configurator.setContext(loggerContext); loggerContext.reset(); configurator.doConfigure(new ByteArrayInputStream(config.getBytes("UTF-8"))); The generated main configuration (variable config) contains mainly includes to files within the file system.
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira

[ http://jira.qos.ch/browse/LBCLASSIC-247?page=com.atlassian.jira.plugin.syste... ] Ceki Gulcu commented on LBCLASSIC-247: -------------------------------------- Hello Michael, This is quite an interesting bug. Does the contents of the "config" string refer to another file via the <include> directive?
ConfigurationWatchList produces a warinig a correct configuration -----------------------------------------------------------------
Key: LBCLASSIC-247 URL: http://jira.qos.ch/browse/LBCLASSIC-247 Project: logback-classic Issue Type: Bug Components: joran Affects Versions: 0.9.28 Reporter: Michael Franz Assignee: Ceki Gulcu
I get the following warning for included files: 12:09:40,657 |-WARN in ch.qos.logback.core.joran.util.ConfigurationWatchListUtil@7c959fa1 - Null ConfigurationWatchList. Cannot add file:/D:/dev/.../logback-lilith.xml Scanning is off. I configure logback in the following way: JoranConfigurator configurator = new JoranConfigurator(); configurator.setContext(loggerContext); loggerContext.reset(); configurator.doConfigure(new ByteArrayInputStream(config.getBytes("UTF-8"))); The generated main configuration (variable config) contains mainly includes to files within the file system.
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira

[ http://jira.qos.ch/browse/LBCLASSIC-247?page=com.atlassian.jira.plugin.syste... ] Ceki Gulcu edited comment on LBCLASSIC-247 at 6/9/11 11:33 PM: --------------------------------------------------------------- Hello Michael, This is quite an interesting bug because the complaint emitted by ConfigurationWatchListUtil points to a much deeper problem. Anyway, do the contents of the "config" string refer to another file via the <include> directive? was (Author: noreply.ceki@qos.ch): Hello Michael, This is quite an interesting bug. Does the contents of the "config" string refer to another file via the <include> directive?
ConfigurationWatchList produces a warinig a correct configuration -----------------------------------------------------------------
Key: LBCLASSIC-247 URL: http://jira.qos.ch/browse/LBCLASSIC-247 Project: logback-classic Issue Type: Bug Components: joran Affects Versions: 0.9.28 Reporter: Michael Franz Assignee: Ceki Gulcu
I get the following warning for included files: 12:09:40,657 |-WARN in ch.qos.logback.core.joran.util.ConfigurationWatchListUtil@7c959fa1 - Null ConfigurationWatchList. Cannot add file:/D:/dev/.../logback-lilith.xml Scanning is off. I configure logback in the following way: JoranConfigurator configurator = new JoranConfigurator(); configurator.setContext(loggerContext); loggerContext.reset(); configurator.doConfigure(new ByteArrayInputStream(config.getBytes("UTF-8"))); The generated main configuration (variable config) contains mainly includes to files within the file system.
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira

[ http://jira.qos.ch/browse/LBCLASSIC-247?page=com.atlassian.jira.plugin.syste... ] Michael Franz commented on LBCLASSIC-247: ----------------------------------------- Yes. Its via the <include> directive. A stripped-down version would look like: <?xml version="1.0" encoding="UTF-8" ?> <configuration> <property name="logfile.Directory" value="D:/server/log" /> <include file="D:\\server\\config\\logback-main.xml"/> <include file="D:\\server\\config\\logback-lilith.xml"/> </configuration>
ConfigurationWatchList produces a warinig a correct configuration -----------------------------------------------------------------
Key: LBCLASSIC-247 URL: http://jira.qos.ch/browse/LBCLASSIC-247 Project: logback-classic Issue Type: Bug Components: joran Affects Versions: 0.9.28 Reporter: Michael Franz Assignee: Ceki Gulcu
I get the following warning for included files: 12:09:40,657 |-WARN in ch.qos.logback.core.joran.util.ConfigurationWatchListUtil@7c959fa1 - Null ConfigurationWatchList. Cannot add file:/D:/dev/.../logback-lilith.xml Scanning is off. I configure logback in the following way: JoranConfigurator configurator = new JoranConfigurator(); configurator.setContext(loggerContext); loggerContext.reset(); configurator.doConfigure(new ByteArrayInputStream(config.getBytes("UTF-8"))); The generated main configuration (variable config) contains mainly includes to files within the file system.
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira

[ http://jira.qos.ch/browse/LBCLASSIC-247?page=com.atlassian.jira.plugin.syste... ] Ceki Gulcu commented on LBCLASSIC-247: -------------------------------------- You should find this bug fixed in logback version 0.9.29. Please confirm. For future reference, it should be noted that logback cannot do auto-scanning for configuration strings containing include directives because when config file needs to be reloaded Joran lacks the full configuration information. One solution would be to memorize the config string for future reference.
ConfigurationWatchList produces a warinig a correct configuration -----------------------------------------------------------------
Key: LBCLASSIC-247 URL: http://jira.qos.ch/browse/LBCLASSIC-247 Project: logback-classic Issue Type: Bug Components: joran Affects Versions: 0.9.28 Reporter: Michael Franz Assignee: Ceki Gulcu
I get the following warning for included files: 12:09:40,657 |-WARN in ch.qos.logback.core.joran.util.ConfigurationWatchListUtil@7c959fa1 - Null ConfigurationWatchList. Cannot add file:/D:/dev/.../logback-lilith.xml Scanning is off. I configure logback in the following way: JoranConfigurator configurator = new JoranConfigurator(); configurator.setContext(loggerContext); loggerContext.reset(); configurator.doConfigure(new ByteArrayInputStream(config.getBytes("UTF-8"))); The generated main configuration (variable config) contains mainly includes to files within the file system.
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira

[ http://jira.qos.ch/browse/LBCLASSIC-247?page=com.atlassian.jira.plugin.syste... ] Ceki Gulcu edited comment on LBCLASSIC-247 at 6/16/11 12:09 PM: ---------------------------------------------------------------- You should find this bug fixed in logback version 0.9.29. Please confirm. For future reference, it should be noted that logback cannot do auto-scanning for configuration strings containing include directives because when config file needs to be reloaded Joran lacks the full configuration information. One solution would be to memorize the config string for future use. was (Author: noreply.ceki@qos.ch): You should find this bug fixed in logback version 0.9.29. Please confirm. For future reference, it should be noted that logback cannot do auto-scanning for configuration strings containing include directives because when config file needs to be reloaded Joran lacks the full configuration information. One solution would be to memorize the config string for future reference.
ConfigurationWatchList produces a warinig a correct configuration -----------------------------------------------------------------
Key: LBCLASSIC-247 URL: http://jira.qos.ch/browse/LBCLASSIC-247 Project: logback-classic Issue Type: Bug Components: joran Affects Versions: 0.9.28 Reporter: Michael Franz Assignee: Ceki Gulcu
I get the following warning for included files: 12:09:40,657 |-WARN in ch.qos.logback.core.joran.util.ConfigurationWatchListUtil@7c959fa1 - Null ConfigurationWatchList. Cannot add file:/D:/dev/.../logback-lilith.xml Scanning is off. I configure logback in the following way: JoranConfigurator configurator = new JoranConfigurator(); configurator.setContext(loggerContext); loggerContext.reset(); configurator.doConfigure(new ByteArrayInputStream(config.getBytes("UTF-8"))); The generated main configuration (variable config) contains mainly includes to files within the file system.
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira

[ http://jira.qos.ch/browse/LBCLASSIC-247?page=com.atlassian.jira.plugin.syste... ] Michael Franz commented on LBCLASSIC-247: ----------------------------------------- Yes, its fixed for me in 0.9.29.
ConfigurationWatchList produces a warinig a correct configuration -----------------------------------------------------------------
Key: LBCLASSIC-247 URL: http://jira.qos.ch/browse/LBCLASSIC-247 Project: logback-classic Issue Type: Bug Components: joran Affects Versions: 0.9.28 Reporter: Michael Franz Assignee: Ceki Gulcu
I get the following warning for included files: 12:09:40,657 |-WARN in ch.qos.logback.core.joran.util.ConfigurationWatchListUtil@7c959fa1 - Null ConfigurationWatchList. Cannot add file:/D:/dev/.../logback-lilith.xml Scanning is off. I configure logback in the following way: JoranConfigurator configurator = new JoranConfigurator(); configurator.setContext(loggerContext); loggerContext.reset(); configurator.doConfigure(new ByteArrayInputStream(config.getBytes("UTF-8"))); The generated main configuration (variable config) contains mainly includes to files within the file system.
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira

[ http://jira.qos.ch/browse/LBCLASSIC-247?page=com.atlassian.jira.plugin.syste... ] Ceki Gulcu closed LBCLASSIC-247. -------------------------------- Resolution: Fixed Thanks.
ConfigurationWatchList produces a warinig a correct configuration -----------------------------------------------------------------
Key: LBCLASSIC-247 URL: http://jira.qos.ch/browse/LBCLASSIC-247 Project: logback-classic Issue Type: Bug Components: joran Affects Versions: 0.9.28 Reporter: Michael Franz Assignee: Ceki Gulcu
I get the following warning for included files: 12:09:40,657 |-WARN in ch.qos.logback.core.joran.util.ConfigurationWatchListUtil@7c959fa1 - Null ConfigurationWatchList. Cannot add file:/D:/dev/.../logback-lilith.xml Scanning is off. I configure logback in the following way: JoranConfigurator configurator = new JoranConfigurator(); configurator.setContext(loggerContext); loggerContext.reset(); configurator.doConfigure(new ByteArrayInputStream(config.getBytes("UTF-8"))); The generated main configuration (variable config) contains mainly includes to files within the file system.
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
participants (2)
-
Ceki Gulcu (JIRA)
-
Michael Franz (JIRA)