title: Web app log is not effected when starting Tomcat 7 by Bootstrap
body: <p><strong>Background:</strong></p>
  
  <p>I have created a bat file on windows, in which a java class will be started. The bat file looks like: <code>java system.configure.Strap "%ROOT_DIR%" "start"</code></p>
  
  <p>The class <code>system.configure.Strap</code> first makes some check, then starts Tomcat server by using the Bootstrap class in startup.jar provided by Tomcat. We already have one web app called Manager in Tomcat.</p>
  
  <p><strong>Problem:</strong></p>
  
  <p>After executing the bat file, there is a screen in which you can see the startup process of the Tomcat. The log information is only logged on the screen, not into the log file anymore.</p>
  
  <ol>
  <li>When using startup.bat provided by Tomcat, the log of the app will be not only logged on the screen,but logged to the file <code>manager\WEB-INF\log\manager.log</code>，just as the log4j.xml in app manager has defined.</li>
  <li>When using the bat file I created,there is just nothing in file <code>manager\WEB-INF\log\manager.log</code></li>
  </ol>
  
  <p>In both cases, Tomcat will startup with no mistakes. Tomcat version is 7.0.42. I have no idea why this problem exists, any suggestions would be appreciated.</p>