Uploaded image for project: 'SLF4J'
  1. SLF4J
  2. SLF4J-444

Allow explicitly selecting a binding

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major 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.

      Attachments

        Activity

          People

            slf4j-dev SLF4J developers list
            chrylis Christopher Smith
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: