Difference between Log4jConfigListener and Log4jServletContextListener while configuring log4j
<p>I am trying to deploy a spring web app in tomcat with log4j logging. From what I see from reading up on log4j configuration you can do it as follows - </p>

<pre><code>&lt;context-param&gt;
    &lt;param-name&gt;log4jConfiguration&lt;/param-name&gt;
     &lt;param-value&gt;/WEB-INF/webdynamo-log4j.xml&lt;/param-value&gt;
&lt;/context-param&gt;

&lt;context-param&gt;
     &lt;param-name&gt;log4j.refresh.interval&lt;/param-name&gt;
     &lt;param-value&gt;120&lt;/param-value&gt;
&lt;/context-param&gt;
</code></pre>

<p>And you also need a listener for this to work - </p>

<p>Couple of places I have seen -</p>

<pre><code>    &lt;listener&gt;
        &lt;listener-class&gt;
            org.apache.logging.log4j.web.Log4jServletContextListener
        &lt;/listener-class&gt;
    &lt;/listener&gt;
</code></pre>

<p>and some places I have seen</p>

<pre><code> &lt;listener&gt;
    &lt;listener-class&gt;org.springframework.web.util.Log4jConfigListener&lt;/listener-class&gt;
&lt;/listener&gt;
</code></pre>

<p>Wanted to understand if there is any fundamental difference in using these listeners. I see they are in different packages altogether. </p>