[ 
https://issues.apache.org/jira/browse/LOG4J2-98?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13475452#comment-13475452
 ] 

Amarkanth commented on LOG4J2-98:
---------------------------------

my "log4j.xml" file (under "src/main/resources") has the following contents
=======================================
<?xml version="1.0" encoding="UTF-8"?>
<configuration debug="true" threshold="null" reset="false">
  <properties>
    <property name="filename">logs/tmp.log</property>
  </properties> -->
  <appenders>
        <Console name="STDOUT">
      <PatternLayout pattern="%m MDC%X%n"/>
    </Console>
    <File name="File" fileName="${filename}">
      <PatternLayout>
        <pattern>%d %p %C{1.} [%t] %m%n</pattern>
      </PatternLayout>
    </File>
    <List name="List">
    </List> -->
  </appenders>
  <loggers>
    <root level="INFO">
      <appender-ref ref="List"/>
    </root>
  </loggers>   
</configuration>
=======================================

My "web.xml" has the following contents

====================================
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 
2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"; >
<web-app>
        <display-name>CDR Application</display-name>

        <listener>
                
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
        </listener>
</web-app>
====================================

Any help to get around this issue is appreciated.

                
> Spring3 doesn't seem to work with SLF4J (log4j2)
> ------------------------------------------------
>
>                 Key: LOG4J2-98
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-98
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Flume Appender, SLF4J Bridge
>    Affects Versions: 2.0-beta2
>         Environment: Wicket, Spring 3, Log4j2, SLF4J, Tomcat 6.x
>            Reporter: Amarkanth
>             Fix For: 2.0-beta3
>
>
> 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>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to