title: Logback: how to change log directory from "tomcat/bin" to application related?
body: <p>I want to use <strong>slf4j</strong> with <strong>logback</strong> for logging.</p>
  
  <p>You can see my logback.xml below:</p>
  
  <pre><code>&lt;configuration&gt;
      &lt;appender name="FILE-MODULE" class="ch.qos.logback.core.FileAppender"&gt;
          &lt;file&gt;module.log&lt;/file&gt;
          &lt;encoder&gt;
              &lt;pattern&gt;
                  %date %level [%thread] %logger{10} [%file:%line] %msg%n
              &lt;/pattern&gt;
          &lt;/encoder&gt;
      &lt;/appender&gt;
  
      &lt;logger name="module" level="debug" additivity="false"&gt;
          &lt;appender-ref ref="FILE-MODULE" /&gt;
      &lt;/logger&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>The problem is: when I deploy my application to Tomcat, log file is stored in <strong>tomcat/bin</strong> folder, and I want to store it in myapp folder (<strong>tomcat/webapp/myapp</strong>).</p>
  
  <p>How can I do that?</p>