Skip to content

Instantly share code, notes, and snippets.

@rhonyabdullah
Last active July 7, 2020 09:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rhonyabdullah/8cff04b0fdf29c8446b3e4dd2a5c8146 to your computer and use it in GitHub Desktop.
Save rhonyabdullah/8cff04b0fdf29c8446b3e4dd2a5c8146 to your computer and use it in GitHub Desktop.
inline fun <reified T> T.logDebug(messages: String) {
Log.d(T::class.java.simpleName, messages)
}
inline fun <reified T> T.logError(messages: String) {
Log.e(T::class.java.simpleName, messages)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment