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

Detected logger name mismatch - false alert

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.7.x
    • Core API
    • None
    • Operating System: Windows NT
      Platform: PC

    Description

      After activating the slf4j.detectLoggerNameMismatch feature, I am seeing false alerts:

      SLF4J: Detected logger name mismatch. Given name: "com.westernasset.compliance.cache.pss.PSSCacheChangeListener$PssActor
      "; computed name: "akka.event.slf4j.Logger$".

      Note that the code looks something like this:

      public class PSSCacheChangeListener implements MapListener {
      private static final Logger LOGGER = LoggerFactory.getLogger(PSSCacheChangeListener.class);

      ...

      public static class PssActor extends UntypedActor {

      private static final Logger LOGGER = LoggerFactory.getLogger(PssActor.class);

      So note that PssActor is an inner class to PSSCacheChangeListener, and also note that UntypedActor is a class from Akka, which may inherit from a Scala class.

      Attachments

        Activity

          People

            slf4j-dev SLF4J developers list
            awhitford Anthony Whitford
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: