log4j logging once after tomcat restart
<p>I try to log some webservice requests and responses but log4j is logging once for first session. After first session finished, second session requests and responses are not written to log file.</p>

<p>I restarted tomcat but same problem occurs after every restart. </p>

<p>Here is property file.</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE log4j:configuration PUBLIC "-//APACHE//DTD LOG4J 1.2//EN"    "log4j.dtd"&gt;
&lt;log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"&gt;
&lt;!-- Appenders --&gt;
&lt;appender name="console" class="org.apache.log4j.ConsoleAppender"&gt;
    &lt;layout class="org.apache.log4j.PatternLayout"&gt;
    &lt;param name="ConversionPattern" 
        value="%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n" /&gt;
    &lt;/layout&gt;
&lt;/appender&gt;

&lt;appender name="Connector"  class="org.apache.log4j.DailyRollingFileAppender"&gt;
    &lt;param name="file" value="${catalina.home}/logs/Connector.log" /&gt;
    &lt;param name="DatePattern" value="'.'yyyy-MM-dd" /&gt;
    &lt;param name="Threshold" value="INFO"/&gt;
    &lt;layout class="org.apache.log4j.PatternLayout"&gt;
    &lt;param name="ConversionPattern" 
        value="%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n" /&gt;
    &lt;/layout&gt;
&lt;/appender&gt;


&lt;logger name="com.connector"&gt;
    &lt;appender-ref ref="Connector" /&gt;
&lt;/logger&gt;

&lt;/log4j:configuration&gt;
</code></pre>