Last active
March 20, 2023 04:08
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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