Dear all,

I am preparing struts2 web project running on weblogic server. But I find that it does not logging. I research in the web. Checked no Duplicate jar. Changed the log4j version but still cannot solve. Do you have any ideas?? My details as below:

code:

public class CardAction extends ActionSupport implements ServletRequestAware{
private Logger log = Logger.getLogger(CardAction.class);


log4j.xml under src folder.

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "dtd/log4j.dtd">

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">

<appender name="logFile" class="org.apache.log4j.RollingFileAppender">
<param name="File" value="/u02/uat/awip/app_public.log" />
<param name="MaxFileSize" value="100000KB" />
<param name="MaxBackupIndex" value="5" />
<param name="Append" value="true" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{dd MMM yyyy HH:mm:ss,SSS} [%p] (%F:%L) %x - %m%n" />
</layout>
</appender>

<appender name="console" class="org.apache.log4j.ConsoleAppender">
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{dd MMM yyyy HH:mm:ss,SSS} [%p] (%F:%L) %x - %m%n" />
</layout>
</appender>

<root>
<level value ="DEBUG"/>
<level value ="INFO"/>
<appender-ref ref="logFile" />
<appender-ref ref="console" />
</root>

</log4j:configuration>