title: Log4j not working after Tomcat has Started
body: <p>I have an application deployed on tomcat server and using log4j logging system. The application is hosted on centOS.</p>
  
  <p>My question is - In my <em>ServletContextListener</em>, log4j logs messages I have instructed on console fine, but when tomcat has finally completed startup, log4j doesn't work any longer.</p>
  
  <p>The strange thing is, this application is deployed on a UAT enviroment and log4j works fine.
  The only difference been tomcat on UAT and tomcat on production is, I have some symbolic directories in my tomcat directory where webapps, bin etc.. are located.</p>
  
  <p>Any idea why this issue?</p>
  
  <p>
  
  </p>
  
  <pre><code>&lt;appender name="console" class="org.apache.log4j.ConsoleAppender"&gt;
      &lt;layout class="org.apache.log4j.PatternLayout"&gt;
          &lt;param name="ConversionPattern" value="%d [%t] %-5p %c %x - %m%n" /&gt;
      &lt;/layout&gt;
  &lt;/appender&gt;
  
  &lt;logger name="com.el.app"&gt;
      &lt;level value="warn" /&gt;
      &lt;appender-ref ref="console" /&gt;
  &lt;/logger&gt;
  </code></pre>
  
  <p></p>