title: Where go my logging files of my webapp on a linux Tomcat 7 installation?
body: <p>I currently develop a simple web app using Eclipse and a local Tomcat 7 server. I configured Eclipse so I can start the Tomcat 7 right out of my IDE - not much magic here.</p>
  
  <p>In my web app, I use SLF4J with Logback, which looks like this in a service class:</p>
  
  <pre><code>public class MyServiceImpl implements MyService
  {
    private static Logger logger = LoggerFactory.getLogger( MyServiceImpl.class );
  
    public void doSomeStuff()
    {
        logger.info( "Doing some stuff" );
    }
  }
  </code></pre>
  
  <p>My logging is configured this way:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;configuration&gt;
  
      &lt;appender name="fileAppender" class="ch.qos.logback.core.rolling.RollingFileAppender"&gt;
          &lt;rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"&gt;
              &lt;fileNamePattern&gt;log/MyTestWebApp.%d.log.zip&lt;/fileNamePattern&gt;
              &lt;maxHistory&gt;30&lt;/maxHistory&gt;
          &lt;/rollingPolicy&gt;
          &lt;encoder&gt;
              &lt;pattern&gt;%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n&lt;/pattern&gt;
          &lt;/encoder&gt;
      &lt;/appender&gt;
  
      &lt;logger name="com.test" level="WARN" /&gt;
  
      &lt;root level="WARN"&gt;
          &lt;appender-ref ref="fileAppender" /&gt;
      &lt;/root&gt;
  
  &lt;/configuration&gt;
  </code></pre>
  
  <p>When I start my web app and so the local Tomcat 7 server, the logging output goes to</p>
  
  <pre><code>./log/MyTestWebApp.log
  </code></pre>
  
  <p>as expected, where the current directory is that where my web app is (for example, where my Maven pom.xml is).</p>
  
  <p>When I start my web app on a remote linux machine, I can't find any "MyTestWebApp.log" file, not in directoy of my web app, nor in the Tomcat7-root directory.</p>
  
  <p>So my simple question is, where do those logs go and where is my "MyTestWebApp.log" file respectively?</p>
  
  <p>Thanks a lot for your help!</p>