Details
-
Improvement
-
Resolution: Unresolved
-
Major
-
None
-
1.7.25
-
None
-
None
Description
The binding autoconfiguration in SLF4J is very handy, but it comes with a severe limitation in testing: Neither Eclipse nor IntelliJ can handle a test-scope exclude (e.g., Surefire's classpathDependencyExclude), and so for an end project (such as a Spring Boot application), it's impossible to run tests that use slf4j-test in the IDE.
It would be very helpful for testing purposes if there were a way to specify (probably in a META-INF file) the preferred logger to use in the case of finding multiple bindings on the classpath. Then dropping an instruction in src/test/resources would allow tests to run with the test logger without tangling classpath issues into the run.