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
I'm creating the constant as a companion object:
companion object { val TAG = "SOME_TAG_VALUE" }
Then, I can use it like this:
MyClass.TAG