Description
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 a META-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 creates Jdk14Logger
instances.
Would it be possible for spring-jcl
to provide a META-INF/services/org.apache.commons.logging.LogFactory
so that it's a better jcl-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:
- Provide an Apache Commons Logging's LogFactory provider in spring-jcl to support WebSphere's Parent-First classloader [SPR-15903] #20457 Provide an Apache Commons Logging's LogFactory provider in spring-jcl to support WebSphere's Parent-First classloader
- java.lang.AbstractMethodError: org.apache.commons.logging.LogFactory.setAttribute(..) [SPR-17302] #21835 java.lang.AbstractMethodError: org.apache.commons.logging.LogFactory.setAttribute(..)
- spring-jcl routes logging inefficiently against SLF4J with log4j-to-slf4j setup [SPR-17586] #22118 spring-jcl routes logging inefficiently against SLF4J with log4j-to-slf4j setup
Referenced from: commits 0b86c71, 31bfc1d
1 votes, 5 watchers