logcat icon indicating copy to clipboard operation
logcat copied to clipboard

Log tag issue in coroutine blocks

Open jackvt93 opened this issue 4 years ago • 1 comments

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?

jackvt93 avatar Oct 31 '21 06:10 jackvt93

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" }.

muthuraj57 avatar Jul 20 '22 13:07 muthuraj57