Logback can no longer monitor not-yet-existing included property files (original) (raw)

Very likely related to #1021

Since 1.5.27, logback does not load a .properties file during a rescan if that file was not present since the start of the application.

Initial files:

├── logback.xml
└── levels.properties

logback.xml:

<configuration scan="true" scanPeriod="1 seconds">
  <propertiesConfigurator file="levels.properties"/>
  <propertiesConfigurator file="overwrites.properties"/>
</configuration>

If I add overwrites.properties while the application is already running:

├── logback.xml
├── levels.properties
└── overwrites.properties

Logback does not recognize that this file was added and does not overwrite the log levels provided from the file. This is the case since 1.5.27, I could verify that it still worked with 1.5.26.