title: How to configure logback.xml for JAR application?
body: <p>I am writing Scala application using logback for logging. I want to configure logback so that when I run my application JAR file I can get a log file. This is my current configuration, which cannot produce any log file</p>
  
  <pre><code>&lt;configuration&gt;
      &lt;appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"&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;appender name="FILE" class="ch.qos.logback.core.FileAppender"&gt;
          &lt;!-- path to your log file, where you want to store logs --&gt;
          &lt;file&gt;./log/test.log&lt;/file&gt;
          &lt;append&gt;false&lt;/append&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;root level="info"&gt;
          &lt;appender-ref ref="STDOUT" /&gt;
          &lt;appender-ref ref="FILE" /&gt;
      &lt;/root&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>Here is my build sbt:</p>
  
  <pre><code>name := "distributed-sorting"
  
  version := "1.0"
  
  scalaVersion := "2.11.8"
  
  libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.0" % "test"
  
  libraryDependencies ++= Seq(
    "junit" % "junit" % "4.8.1" % "test"
  )
  libraryDependencies += "ch.qos.logback" % "logback-classic" % "1.1.7"
  libraryDependencies += "com.typesafe.scala-logging" %% "scala-logging" % "3.5.0"
  libraryDependencies += "com.lihaoyi" %% "upickle" % "0.4.3"
  </code></pre>
  
  <p>Thank you</p>