slf4kotlin

Kotlin wrapper for slf4j library

View project on GitHub

Kotlin wrapper for slf4j library

Apache License 2.0 Build Status Download Kotlin version

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

  • Getting started with Gradle
  • Getting started with Maven