Skip to content

Logback can no longer monitor not-yet-existing included property files #1034

@trathschlag

Description

@trathschlag

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.

Metadata

Metadata

Assignees

Labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions