I am struggling to get Logging to work on Compose ...
# multiplatform
e
I am struggling to get Logging to work on Compose multiplatform. I want to use Kotlin Logging by Oshai which supports KMP. After following documentation nothing appears on logcat 😕 has anyone been able to implement this?
c
We will need a little bit more information like your setup source and so on. You followed the Multiplatform guide, right? And the Android setup in particular? https://github.com/oshai/kotlin-logging/wiki/Multiplatform-support#android-usage
Also I’d recommend Kermit for logging ;-) https://github.com/touchlab/Kermit
1
e
For Kotlin logging, I did set up common dependency and I set up the android part in main activity.
I tried using Kermit too, and I ran into the same issue where nothing appeared in LogCat
c
Then something is wrong with your logcat. Get sure to select the correct device and refresh. Is nothing showing up in logcat or only not showing your logs? Also check the filters and tags.
e
I'll give it another try. Logs do appear in logcat from other dependencies. I am looking in
package:mine
to filter logs. It is just not showing the logs I create with kermit or kotlin-logging. I place the logs in classes found in the common directory
@Chrimaeon Hey I tested it and it looks like it's working properly now with Kermit! Thanks for your help I appreciate it! Not sure what I did wrong at first.
👍🏼 1