title: Enabling logging in Spring
body: <p>We are using RAD 7.5 as IDE and also log4j for logging purpose. we want to enable spring logging.</p>
  
  <p>I tried the following</p>
  
  <ul>
  <li>Added <code>org.springframework.web.util.Log4jConfigListener</code> as a listener in <code>web.xml</code>. It is  added before <code>ContextLoaderListener</code>.</li>
  <li><code>log4j.properties</code> is present in application war under <code>WEB-INF</code>.</li>
  <li>Add the following context parameter in <code>web.xml</code>:</li>
  </ul>
  
  <hr>
  
  <pre><code>&lt;context-param&gt;
    &lt;param-name&gt;log4jConfigLocation&lt;/param-name&gt;
    &lt;param-value&gt;/WEB-INF/log4j.properties&lt;/param-value&gt;
  &lt;/context-param&gt;
  </code></pre>
  
  <hr>
  
  <p>In log 4j added the following</p>
  
  <pre><code>log4j.logger.org.springframework=ALL
  </code></pre>
  
  <p>Even then I am not able to see any output in console or in log file.</p>
  
  <p>Can anyone please let me know the exact steps for enabling spring logging.</p>