[slf4j-dev] [JIRA] (SLF4J-436) Logger name mismatch when using Spock

QOS.CH (JIRA) noreply-jira at qos.ch
Mon Apr 30 19:54:00 CEST 2018


Tobias Gruetzmacher created SLF4J-436:
-----------------------------------------

             Summary: Logger name mismatch when using Spock
                 Key: SLF4J-436
                 URL: https://jira.qos.ch/browse/SLF4J-436
             Project: SLF4J
          Issue Type: Bug
          Components: Core API
    Affects Versions: 1.8.0-beta2, 1.7.25
            Reporter: Tobias Gruetzmacher
            Assignee: SLF4J developers list
            Priority: Minor


When using the Spock Framework ([http://spockframework.org/)] in combination with *slf4j.detectLoggerNameMismatch* you get logger mismatch messages like this:

 
{noformat}
SLF4J: Detected logger name mismatch. Given name: "org.example.MismatchTest"; computed name: "org.slf4j.LoggerFactory$getLogger".
SLF4J: See http://www.slf4j.org/codes.html#loggerNameMismatch for an explanation{noformat}
It seems that Spock does some magic with its test classes...



--
This message was sent by Atlassian JIRA
(v7.3.1#73012)


More information about the slf4j-dev mailing list