[logback-dev] [JIRA] Updates for LOGBACK-1670: Config files ignored when running with Java modules

QOS.CH (JIRA) noreply-jira at qos.ch
Wed Aug 31 17:03:00 CEST 2022

logback / LOGBACK-1670 [Open]
Config files ignored when running with Java modules 


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

 Issue created

Alexey Gavrilov created this issue on 31/Aug/22 4:47 PM
Summary:              Config files ignored when running with Java modules 
Issue Type:           Bug
Affects Versions:     1.3.0, 1.4.0
Assignee:             Logback dev list
Components:           logback-classic
Created:              31/Aug/22 4:47 PM
Environment:          Java Modules
Priority:             Critical
Reporter:             Alexey Gavrilov
  Logback doesn't load XML configuration files for Java applications running with Java Modules (JPMS).
  Run 'run.sh' shell script in this repository to reproduce:
  The problem is that at startup Logback cannot find 'DefaultJoranConfigurator' (the default implementation of 'ch.qos.logback.classic.spi.Configurator') located inside the 'ch.qos.logback.classic' module. This is because 'ch.qos.logback.classic' doesn't actually declare it provides the implementation.
  Adding this line to the module's module-info.java can fix the problem:
  provides ch.qos.logback.classic.spi.Configurator with ch.qos.logback.classic.util.DefaultJoranConfigurator;
  'ch.qos.logback.classic.servlet.LogbackServletContainerInitializer' should probably declared the same way

 This message was sent by Atlassian Jira (v8.8.0#808000-sha1:e2c7e59)

More information about the logback-dev mailing list