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

Spring3 doesn't seem to work with SLF4J (log4j2)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 2.0-beta2
    • None
    • None
    • Wicket, Spring 3, Log4j2, SLF4J, Tomcat 6.x

    Description

      I tried switching from log4j1.2 to log4j2 inorder to use the "Flume Appender" but i'm running into the following issue

      • The "log4j.xml" doesn't seem to get picked up
      • The application does start-up fine (but) there is no logging.

      Prior to the migration, the logging worked fine.

      I have the following config (pom.xml)
      =============================
      <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-api</artifactId>
      <version>2.0-beta2</version>
      </dependency>
      <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-core</artifactId>
      <version>2.0-beta2</version>
      </dependency>
      <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
      <version>1.7.0</version>
      </dependency>
      <dependency>
      <groupId>org.apache.logging.log4j.adapters</groupId>
      <artifactId>slf4j-impl</artifactId>
      <version>2.0-beta2</version>
      </dependency>
      <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>jcl-over-slf4j</artifactId>
      <version>1.7.0</version>
      <scope>runtime</scope>
      </dependency>

      Attachments

        Activity

          People

            rgoers Ralph Goers
            amarkanth1984 Amarkanth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: