I\'m creating my first Kotlin classes in my Android application. Usually for logging purposes I have a constant with name TAG. What I would do in Java is:
TAG
In general constants are all caps (ex. FOO) and located in the companion object:
class MyClass { companion object { public const val FOO = 1 } }
and to define the TAG field you can use:
private val TAG = MyClass::class.qualifiedName