title: How to configure org.slf4j:slf4j-simple in android studio for generic unit test (not android unit test)?
body: <p>I am using android's unit test tool to test my application. Since a part of the code is not related to Android platform, I don't want to use android's logcat related API directly.</p>
  <p>I'm using <code>io.github.microutils:kotlin-logging-jvm</code> as my logger wrapper. i want to use <code>org.slf4j:slf4j-android</code> as the backend implementation on the android platform, and <code>org.slf4j:slf4j-simple</code> as the backend implementation.</p>
  <p>Now I can adapt the backend slf4j-simple using kotlin-logging-jvm, see the following code.</p>
  <pre class="lang-kotlin prettyprint-override"><code>class ExampleUnitTest {
      private val logger = KotlinLogging.logger{}
      @Test
      fun addition_isCorrect() {
          println(&quot;logger is &quot; + logger.underlyingLogger)
          println(&quot;error: &quot; + logger.isErrorEnabled)
          println(&quot;warn: &quot; + logger.isWarnEnabled)
          println(&quot;info: &quot; + logger.isInfoEnabled)
          println(&quot;debug: &quot; + logger.isDebugEnabled)
          println(&quot;trace: &quot; + logger.isTraceEnabled)
          logger.info { &quot;UnderTest.adder(10, 20)&quot; }
          assertEquals(30, UnderTest().adder(10, 20))
      }
  }
  </code></pre>
  <p>But I don't know how to configure the above logger so that the debug level also does the output. There is a lot of introduction to use simplelogger.properties file, but in Android Studio I don't know if it still works, and if it does, what directory should I put it in.</p>