Kotlin Android print to console

There are a couple of ways.

You can use Log.d("TAG", "message"); for example but first you need to import Log.

import android.util.Log

{...}

Log.d("TAG", "message")

{...}

Source: https://developer.android.com/reference/android/util/Log.html

You can also use kotlin’s print and println function.

Example:

{...}

print("message")

println("other message")

{...}

Source: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.io/

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)