Allow spring-jcl to be found by Commons Logging's service discovery [SPR-16585] #21127
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Andy Wilkinson opened SPR-16585 and commented
I've just learned about a useful behaviour of
jcl-over-slf4j
which allows it to work even when the Commons Logging jar has got onto the classpath somehow.jcl-over-slf4j
contains aMETA-INF/services/org.apache.commons.logging.LogFactory
file which means that it's found by Commons Logging's standard discovery mechanism.spring-jcl
has no such file. As a result, when Commons Logging is on the classpath and is being used, it falls back to its default factory and createsJdk14Logger
instances.Would it be possible for
spring-jcl
to provide aMETA-INF/services/org.apache.commons.logging.LogFactory
so that it's a betterjcl-over-slf4j
replacement and continues to work even when Commons Logging is on the classpath?Affects: 5.0.4
Reference URL: spring-projects/spring-boot#12457
Issue Links:
Referenced from: commits 0b86c71, 31bfc1d
1 votes, 5 watchers
The text was updated successfully, but these errors were encountered: