Skip to content

Allow spring-jcl to be found by Commons Logging's service discovery [SPR-16585] #21127

Closed
@spring-projects-issues

Description

@spring-projects-issues

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:

Referenced from: commits 0b86c71, 31bfc1d

1 votes, 5 watchers

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions