How about excluding `commons-logging` in `spring-core` in `spring-boot-dependencies`?
See original GitHub issueIn every starter module (spring-boot-starter-*),
the following dependency keeps showing up:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
How about excluding commons-logging
in spring-core
in spring-boot-dependencies
?
Issue Analytics
- State:
- Created 9 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Logging Dependencies in Spring
To switch off commons-logging is easy: just make sure it isn't on the classpath at runtime. In Maven terms you exclude the dependency, ......
Read more >Disable Apache Commons Logging in Spring project
But if possible, look for commons-logging.jar in your /lib directory. If it's still there, then you might try deleting the file from your...
Read more >Gradle - Exclude commons-logging from Spring - Mkyong.com
Gradle example to exclude commons-logging from Spring frameworks. A better solution is excluding commons-logging at the project level.
Read more >Logging in Spring Boot - Baeldung
In order to use any logging library other than Logback, though, we need to exclude it from our dependencies.
Read more >Logging in Spring Boot - HowToDoInJava
Spring boot's internal logging is written with Apache Commons Logging so it is one and only mandatory dependency. Till Spring boot version ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yeah - I think it is maybe no longer relevant for 2.x since spring started using it’s own logging abstraction which detects jcl, slf4j etc
@davidkarlsen Thanks for the suggestion. We actually already include
jcl-over-slf4j
with the logging starter. Also later version of Spring Boot also no longer have the exclude (this is quite an old issue report).