withClassTag
Returns a LogWrapper whose tag is derived from the simple name of class T.
Usage:
class MyViewModel {
private val log = Log.withClassTag<MyViewModel>()
fun init() {
log.d("ViewModel initialized")
}
}Content copied to clipboard