title: log4j2. Unable to config and running on zk/tomcat 6 web project
body: <p>I write a litte webapp in zk/spring.
  I tried in many different mode to activate logging (i read some post etc..) but without success.</p>
  
  <p>1) I tried, for simplicity, automatic config with file log4j2.xml (like some examples read here)</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Configuration status="INFO"&gt;
    &lt;Appenders&gt;
      &lt;Console name="Console" target="SYSTEM_OUT"&gt;
        &lt;PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/&gt;
      &lt;/Console&gt;
      &lt;File name="File" fileName="/tmp/stccGestioneGiri.log"&gt;
        &lt;PatternLayout&gt;
          &lt;Pattern&gt;%d %p %c{1.} [%t] %m%n&lt;/Pattern&gt;
        &lt;/PatternLayout&gt;
      &lt;/File&gt;
    &lt;/Appenders&gt;
    &lt;Loggers&gt;
      &lt;Logger name="TestLog" level="trace"&gt;
        &lt;AppenderRef ref="Console"/&gt;
        &lt;AppenderRef ref="File"/&gt;
      &lt;/Logger&gt;
      &lt;Root level="info"&gt;
        &lt;AppenderRef ref="Console"/&gt;
        &lt;AppenderRef ref="File"/&gt;
      &lt;/Root&gt;
    &lt;/Loggers&gt;
  &lt;/Configuration&gt;
  </code></pre>
  
  <p>2) I put the xml file under WEB-INF directory</p>
  
  <p>3) I write some very simple code in my appl</p>
  
  <pre><code>Logger logger = LogManager.getLogger(Menu.class.getName());
  logger.trace("This is a trace message."); 
  logger.debug("This is  a debug message."); 
  logger.info("This is an info message."); 
  logger.error("This is an error message");
  </code></pre>
  
  <p>but I cannot read in stdout trace/debug/info messages; and I cannot find my log file under /tmp or under {tomcat_path}/logs/</p>
  
  <p>Someone can help me?
  Thanks</p>
  
  <p>Luca</p>