Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-2305

Log4j 2.10+not working with SLF4J 1.8 in OSGI environment

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.10.0, 2.11.0
    • Fix Version/s: 2.11.1
    • Component/s: None
    • Labels:
      None

      Description

      I have a simple osgi plugin that just logs something to slf4j Logger in the Activator's bundle start method.
      When I install and start log4j-core-2.11.0.jar, log4j-api-2.11.0.jar, log4j-slf4j-impl-2.11.0.jar and slf4j-api-1.8.0-beta1.jar in a clean felix gogo shell, and then install and start my plugin, it prints the No-SLF4J-providers-were-found message.
       
       
      It does work if I do the same with log4j  2.9.1 and slf4j-api-1.7.25.
       
      You can find my simple plugin on github: https://github.com/rgansevles/osgi-slf4j-sample
       
       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                rgansevles Rob Gansevles
              • Votes:
                1 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: