Skip to content

Instantly share code, notes, and snippets.

@nwillc
Created March 24, 2019 22:24
Show Gist options
  • Save nwillc/23b2e2ca2d41a6fb39e501872cc521a3 to your computer and use it in GitHub Desktop.
Save nwillc/23b2e2ca2d41a6fb39e501872cc521a3 to your computer and use it in GitHub Desktop.
A Kotlin extension function for SLF4J API
import org.slf4j.Logger
import org.slf4j.LoggerFactory
inline fun <reified T> getLogger(): Logger = LoggerFactory.getLogger(T::class.java.name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment