title: Logback log location
body: <p>I'm using SLF4J with java for logs, i know how to save to specific location, but I want that the log will create under the jar running folder.</p>
  
  <p>How could I set it in the <code>logback.xml</code>?
  I tried to not defined the <code>DEV_HOME</code> value or with <code>./</code>, but it didn't create the log under the jar location.
  this is my current configuration:</p>
  
  <p>
  </p>
  
  <pre><code>&lt;property name="DEV_HOME" value="user.home" /&gt;
  
  &lt;appender name="FILE-AUDIT"
            class="ch.qos.logback.core.rolling.RollingFileAppender"&gt;
      &lt;file&gt;${DEV_HOME}/debug.log&lt;/file&gt;
      &lt;encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"&gt;
          &lt;Pattern&gt;
              %d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n
          &lt;/Pattern&gt;
      &lt;/encoder&gt;
  
      &lt;rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"&gt;
          &lt;!-- rollover daily --&gt;
          &lt;fileNamePattern&gt;${DEV_HOME}/archived/debug.%d{yyyy-MM-dd}.%i.log
          &lt;/fileNamePattern&gt;
          &lt;timeBasedFileNamingAndTriggeringPolicy
                  class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"&gt;
              &lt;maxFileSize&gt;10MB&lt;/maxFileSize&gt;
          &lt;/timeBasedFileNamingAndTriggeringPolicy&gt;
      &lt;/rollingPolicy&gt;
  
  &lt;/appender&gt;
  
  &lt;logger name="com.FAM" level="debug"
          additivity="false"&gt;
      &lt;appender-ref ref="FILE-AUDIT" /&gt;
  &lt;/logger&gt;
  
  &lt;root level="error"&gt;
      &lt;appender-ref ref="FILE-AUDIT" /&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p></p>