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

LoggerFactory does not work properly with ContextSelector

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 1.5.x
    • Fix Version/s: None
    • Component/s: Implementations
    • Labels:
      None
    • Environment:

      Operating System: Windows XP
      Platform: PC

      Description

      The class LoggerFactory is used by the bridging APIs for requesting a Logger instance of the SLF4J underlying implementation. The ContextSelector is only called in the constructor to retrieve an ILoggerFactory instance. The factory will then be used until the end of the application.

      For a correct support of a ContextSelector implementation, LoggerFactory should use for each request the ContextSelector in order to retrievee an ILoggerFactory instance.

      A quick fix is applied at this bugreport.

        Attachments

          Activity

            People

            • Assignee:
              slf4j-dev SLF4J developers list
              Reporter:
              holger.mense Holger Mense
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: