You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.
Append file includedConfig.conf with the following content to the src/test/resources:
include "./asyncAppender.conf"
test.logback {
}
Modify file name in the first line of org.gnieh.logback.config.ConfigConfiguratorTest.testConfigureAsyncAppender() to includedConfig.conf
Run tests.
Expected results: passing tests
Actual results:
java.lang.NullPointerException
at ch.qos.logback.core.joran.spi.ConfigurationWatchList.convertToFile(ConfigurationWatchList.java:93)
at ch.qos.logback.core.joran.spi.ConfigurationWatchList.addAsFileToWatch(ConfigurationWatchList.java:59)
at ch.qos.logback.core.joran.spi.ConfigurationWatchList.addToWatchList(ConfigurationWatchList.java:67)
at ch.qos.logback.core.joran.util.ConfigurationWatchListUtil.addToWatchList(ConfigurationWatchListUtil.java:68)
at org.gnieh.logback.config.ConfigConfigurator.lambda$2(ConfigConfigurator.java:342)
at java.util.Iterator.forEachRemaining(Iterator.java:116)
at org.gnieh.logback.config.ConfigConfigurator.registerFileWatchers(ConfigConfigurator.java:342)
at org.gnieh.logback.config.ConfigConfigurator.configure(ConfigConfigurator.java:163)
at org.gnieh.logback.config.ConfigConfiguratorTest.testConfigureAsyncAppender(ConfigConfiguratorTest.java:139)
...............
The problem is org.gnieh.logback.config.ConfigConfigurator.getSourceFiles(ConfigValue, Set<URL>). It's to naive to work as expected. The only valid way to gather files in current config library implementation is to provide the ConfigIncluder implementation to ConfigParseOptions.prependIncluder and pass the result to the one of ConfigFactory static methods.
The text was updated successfully, but these errors were encountered:
radist-nt
added a commit
to radist-nt/logback-config
that referenced
this issue
Mar 16, 2021
includedConfig.conf
with the following content to the src/test/resources:org.gnieh.logback.config.ConfigConfiguratorTest.testConfigureAsyncAppender()
toincludedConfig.conf
Expected results: passing tests
Actual results:
The problem is
org.gnieh.logback.config.ConfigConfigurator.getSourceFiles(ConfigValue, Set<URL>)
. It's to naive to work as expected. The only valid way to gather files in current config library implementation is to provide theConfigIncluder
implementation toConfigParseOptions.prependIncluder
and pass the result to the one ofConfigFactory
static methods.The text was updated successfully, but these errors were encountered: