org.slf4j.impl.StaticMDCBinder.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of log4kt Show documentation
Show all versions of log4kt Show documentation
A very simple SLF4J implementation written in Kotlin.
The newest version!
package org.slf4j.impl
import com.zp4rker.log4kt.Log4KtMDCAdapter
import org.slf4j.spi.MDCAdapter
/**
* @author zp4rker
*/
class StaticMDCBinder {
companion object {
@JvmField val SINGLETON = StaticMDCBinder()
}
fun getMDCA(): MDCAdapter = Log4KtMDCAdapter()
fun getMDCAdapterClassStr(): String = Log4KtMDCAdapter::class.java.name
}