Uploaded image for project: 'JBoss Log Manager'
  1. JBoss Log Manager
  2. LOGMGR-265

log4j2-jboss-logmanager: Service Provider wrong file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Blocker Blocker
    • None
    • None
    • None
    • Hide

      create hello world project
      append dependencies <artifactId>log4j-api</artifactId> and <artifactId>log4j2-jboss-logmanager</artifactId>
      obtain log4j2 logger in HelloWorld Class, log line

      Show
      create hello world project append dependencies <artifactId>log4j-api</artifactId> and <artifactId>log4j2-jboss-logmanager</artifactId> obtain log4j2 logger in HelloWorld Class, log line
    • Workaround Exists
    • Hide

      Setting the system property log4j2.loggerContextFactory to the name of the LoggerContextFactory class to use (org.jboss.logmanager.log4j.JBossProvider)
      -Dlog4j2.loggerContextFactory=org.jboss.logmanager.log4j.JBossProvider

      Show
      Setting the system property log4j2.loggerContextFactory to the name of the LoggerContextFactory class to use (org.jboss.logmanager.log4j.JBossProvider) -Dlog4j2.loggerContextFactory=org.jboss.logmanager.log4j.JBossProvider
    • Low

      Currently the service provider class is

      https://github.com/jboss-logging/log4j2-jboss-logmanager/blob/master/src/main/resources/META-INF/services/org.apache.logging.log4j.spi.Provider

      according to https://logging.apache.org/log4j/2.x/manual/extending.html it must be META-INF/services/org.apache.logging.spi.Provider (without the log4j in its name).

              Unassigned Unassigned
              a13397 Boris Unckel (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: