title: spring boot war log4j2
body: <p>i'm developing a application using spring boot version 1.3.5 (spring 4.2.6).
  i use log4j2 version 2.4.1 as logging system.
  when working on sts (spring tool suite) and executing on embeeded tomcat, the logs works fine (on console and on file) but when building a war file and deploying it on external tomcat 8 the log file is created but my logs don't appear in it.</p>
  
  <p>i've looked for similar issue and tested some solutions:</p>
  
  <ol>
  <li>setting the logging.config property on tomcat</li>
  <li>configuring 'application.properties' file with the parameter logging.config=classpath:log4j2-spring.xml</li>
  <li>using another logging framework (logback)</li>
  </ol>
  
  <p>but none of this solution work. 
  the post that talks about that is:
  <a href="https://stackoverflow.com/questions/25491064/spring-boot-logging-configuration-when-deployed-as-war">Spring-Boot Logging configuration when deployed as .war</a></p>
  
  <p>any help or detailled answer please.</p>