Kotlin wrapper for slf4j library
Slf4kotlin provide simple API to write logs in Kotlin way:
import com.github.paslavsky.logDebug
fun sayHello() {
logDebug { "Hello world" }
}
You don’t need to use LoggerFactory
to create new logger and save them into some class fields.
Slf4Kotlin provides few extension functions that applicable for any not null object:
logError
logWarning
logInfo
logDebug
logTrace
logSuccess
todo