JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
16.36k stars 1.18k forks source link

The Android Studio does not print all levels of logs for the iOSApp. #3870

Closed KevinnZou closed 2 months ago

KevinnZou commented 1 year ago

Describe the bug https://github.com/touchlab/Kermit/issues/380

When running the iOSApp from AS, only logs with a level above INFO will be printed. However, if we run it in Xcode, we can see all the logs. I believe this is a bug related to the KMM AS plugin, but I am unable to find where to submit the issue. Therefore, I am submitting it here.

Affected platforms Select one of the platforms below:

Versions

To Reproduce You can directly test this project https://github.com/KevinnZou/compose-webview-multiplatform. Start by running it on desktop or Android, and then run iOSApp to observe the differences in the logs.

dima-avdeev-jb commented 1 year ago

Thanks! I will talk with KMM team.

Can you please provide a minimal reproducible sample? In this sample should be easy to understand that logs are printer on Android Studio, an what shoud be printed as well as in Xcode.

KevinnZou commented 1 year ago

@dima-avdeev-jb I think this would be enough to reproduce the bug https://github.com/KevinnZou/cmm-logger-sample

Basically, it should print out all 4 logs in AS when running on iOS target, but it just prints out the last two. Android and Desktop print all 4 logs.

Logger.v { "Verbose $showImage" }
Logger.d { "Debug $showImage" }
Logger.i { "Info $showImage" }
Logger.w { "Warn $showImage" }
terrakok commented 1 year ago

Could you file the issue here: https://youtrack.jetbrains.com/newIssue?project=KT&c=Subsystems+Apple+Ecosystem ?

okushnikov commented 4 months ago

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

slikasgiedrius commented 2 months ago

I am also experiencing this exact issue. Is there any news on it?