aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/main/java/org/slf4j/impl/StaticLoggerBinder.kt
blob: 85ab4d4244636bd937ebdd0e6016aeb945332587 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@file:Suppress("Unused")

package org.slf4j.impl

import app.passwordstore.util.log.LogcatLoggerFactory
import org.slf4j.ILoggerFactory
import org.slf4j.spi.LoggerFactoryBinder

class StaticLoggerBinder : LoggerFactoryBinder {
  private val loggerFactory: ILoggerFactory = LogcatLoggerFactory()
  private val loggerFactoryClassStr = LogcatLoggerFactory::javaClass.name

  override fun getLoggerFactory(): ILoggerFactory {
    return loggerFactory
  }
  override fun getLoggerFactoryClassStr(): String {
    return loggerFactoryClassStr
  }

  companion object {
    @JvmStatic val singleton = StaticLoggerBinder()
  }
}