try the bridge to log4j1
https://logging.apache.org/log4j/log4j-2.2/log4j-1.2-api/index.html


Updated to:
. log4j-api-2.6.2.jar
. log4j-core-2.6.2.jar
. log4j-web-2.6.2.jar
. log4j-1.2-api-2.6.2.jar
. commons-logging-1.2.jar
. struts2.5.2. jars

Didn't change web.xml and log4j.xml.

But log files were NOT auto-generated by tomcat7.0.70.

Is there something that I missed to add/config?

Thanks a lot!
--
web.xml
...
 <listener>
<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
</listener>
...
<context-param>
      <param-name>log4jExposeWebAppRoot</param-name>
      <param-value>false</param-value>
   </context-param>

   <context-param>
      <param-name>log4jConfigLocation</param-name>
<param-value>/WEB-INF/classes/log4j.xml</param-value>
   </context-param>
...



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to