Skip to content

Instantly share code, notes, and snippets.

@paulouskunda
Created March 15, 2023 08:52
Show Gist options
  • Save paulouskunda/85c8ff7e7960c27d142b4eb6df6f30d9 to your computer and use it in GitHub Desktop.
Save paulouskunda/85c8ff7e7960c27d142b4eb6df6f30d9 to your computer and use it in GitHub Desktop.
import org.slf4j.Logger
import org.slf4j.LoggerFactory
class RecipeUtil {
inline fun <reified T> logger(): Logger {
return LoggerFactory.getLogger(T::class.java)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment