Skip to content

Instantly share code, notes, and snippets.

@akshaykalola28
Last active March 20, 2023 04:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save akshaykalola28/20a60d61049fb8edeff9994bd8d18b0a to your computer and use it in GitHub Desktop.
Save akshaykalola28/20a60d61049fb8edeff9994bd8d18b0a to your computer and use it in GitHub Desktop.
Extenstion function to print in the logcat with default and custom log tag.
import android.util.Log
fun Any?.printToLog(tag: String = "DEBUG_LOG") {
Log.d(tag, toString())
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment