title: Enable Logging JBoss EAP 6.2 log4j
body: <p>I have a web app that I am trying to migrate to JBoss EAP 6.1. I have tried every suggestion on SO to accomplish log4j logging and I just can't seem to get any traction. The server logs don't get logged to nor does the Eclipse console get logged to using the log4j statements. I have even tried System.out statements and they don't work. The Web app is up and running and I do get logs for the startup of JBoss.</p>
  
  <p>What I have tried</p>
  
  <ul>
  <li>Moving log4j.xml to WEB-INF</li>
  <li>Moving log4j.xml to src/main/java so that it gets bundled in the classes folder</li>
  <li>Creating a  jboss-deployment-structure.xml and placing it in the META-INF folder</li>
  <li>Changing the logging library to org.jboss.jboss.logging.Logger</li>
  <li>Adding JAVA_OPTS="$JAVA_OPTS -Dorg.jboss.as.logging.per-deployment=false" to the standalone.conf file</li>
  </ul>
  
  <p>Posts that I have referenced:</p>
  
  <ol>
  <li><a href="http://www.mastertheboss.com/jboss-server/jboss-log/using-log4j-with-jboss-6" rel="nofollow noreferrer">Link 1</a></li>
  <li><a href="https://developer.jboss.org/thread/229578?tstart=0" rel="nofollow noreferrer">Link 2</a></li>
  <li><a href="https://stackoverflow.com/questions/28286276/log4j-not-logging-with-jboss-6-1">Link 3</a></li>
  <li><a href="https://stackoverflow.com/questions/12670415/log4j-doesnt-log-anything-under-jboss-6-eap">Link 4</a></li>
  </ol>
  
  <p>This seems like such a simple thing, yet I am at a total loss. My next step is to forget about the web app and just make a little test app and see if I can get that logging. Maybe its a conflict or something somewhere. Anyhow, any help would be greatly appreciated. Thanks.</p>
  
  <p><strong>EDIT 1</strong> log4j.xml Contents for James</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;!DOCTYPE log4j:configuration SYSTEM "log4j.dtd" &gt;
      &lt;log4j:configuration&gt;
  &lt;appender name="stdout" class="org.apache.log4j.ConsoleAppender"&gt;
      &lt;layout class="org.apache.log4j.PatternLayout"&gt;
          &lt;param name="ConversionPattern" value="%d{ABSOLUTE} %5p %c{1}:%L - %m%n"/&gt;
      &lt;/layout&gt;
  &lt;/appender&gt;
  
  
  &lt;appender name="dailyRollingFileAppender" class="org.apache.log4j.DailyRollingFileAppender"&gt;
      &lt;param name="File" value="/logs/voice/config/configDbLog.log"/&gt;
  
      &lt;!-- C:\\tmp\configDblog.txt --&gt;
  
      &lt;param name="Append" value="true"/&gt;
      &lt;param name="DatePattern" value="'.'yyyy-MM-dd"/&gt;
      &lt;layout class="org.apache.log4j.PatternLayout"&gt;
      &lt;!--param name="ConversionPattern" value="%d [%t] %p - %m%n"/--&gt;
      &lt;param name="ConversionPattern" value="%d{ABSOLUTE} %5p %c{1}:%L - %m%n"/&gt;
      &lt;/layout&gt;
  &lt;/appender&gt;
  
   &lt;logger name="E1Audit"&gt;
      &lt;level value="WARN"/&gt;
      &lt;appender-ref ref="stdout"/&gt;
  &lt;/logger&gt;
  
  &lt;root&gt;
      &lt;priority value="TRACE"/&gt;
      &lt;appender-ref ref="dailyRollingFileAppender"/&gt;
      &lt;appender-ref ref="stdout"/&gt;
  &lt;/root&gt;
  
  &lt;/log4j:configuration&gt;
  </code></pre>