logback / LOGBACK-1537 [Open] ConfigurationWatchList warning while configured via stream with included files
============================== Here's what changed in this issue in the last few minutes. This issue has been created This issue is now assigned to you. View or comment on issue using this link https://jira.qos.ch/browse/LOGBACK-1537 ============================== Issue created ------------------------------ Milan Siebenburger created this issue on 06/Nov/20 12:12 PM Summary: ConfigurationWatchList warning while configured via stream with included files Issue Type: Bug Affects Versions: 1.2.3 Assignee: Logback dev list Components: logback-core Created: 06/Nov/20 12:12 PM Priority: Minor Reporter: Milan Siebenburger Description: I have JoranConfigurator configured via stream, something like this: {code:java} final InputStream stream = Thread.currentThread().getContextClassLoader().getResourceAsStream("logback.xml"); try { final JoranConfigurator configurator = new JoranConfigurator(); .. configurator.doConfigure(stream); .. catch { // } {code} There are configured other includes in his logback definition, something like that: {code:java} <include file="${logback.include.file}"/> {code} Then, I got this WARNing (ch.qos.logback.core.joran.util.ConfigurationWatchListUtil:65) {noformat} WARN in ch.qos.logback.core.joran.util.ConfigurationWatchListUtil@2fd66ad3 - Null ConfigurationWatchList. Cannot add file:/<file....>{noformat} It is because method GenericConfigurator.doConfigure(InputStream inputStream) does not create ConfigurationWatchList in context (CoreConstants.CONFIGURATION_WATCH_LIST). Shouldn't be possible to add included files in ConfigurationWatchList even if there is "no" main configuration file? ============================== This message was sent by Atlassian Jira (v8.8.0#808000-sha1:e2c7e59) _______________________________________________ logback-dev mailing list logback-dev@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-dev