logcat
logcat copied to clipboard
Log tag issue in coroutine blocks
I call a logcat function with default parameters in my kotlin coroutine block like viewModelScope.launch {}, but the tag name seems get from the nested class not from the root class (Eg. StandaloneCoroutine: xxxx). Should we make the tag name more generally or something just like Timber is doing?
I wrote something similar to this library for our internal use and I also faced the same issue. I solved it by just calling the logcat function with the root class's scope like this [email protected] { "my log" }.