Skip to content

including file from classpath produces unavoidable warning? #1001

Description

@makerMcl

Hi,
having a logback.xml on classpath, using <include resource="otherfile.xml"/> element, logback always warns about:

17:11:20,313 |-WARN in ch.qos.logback.core.joran.util.ConfigurationWatchListUtil@1dd6d4b7 - Null ConfigurationWatchList. Cannot add file:/C:/dev/projectName/target/classes/_logback-monitor.inc.xml

There are no other warnings, and there is no way to avoid/workaround this warning.
Tried with , but that does not work (and makes no sense, right) with resources from classpath.
The included file is existing and loaded and the logging context is working as expected. There is no reason for logback showing anything in StatusPrinter2.printInCaseOfErrorsOrWarnings().

The expected behaviour is: show no WARN at all.

Can you suppress this warning above, or make it conditional showing only if warching is enabled at all?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions