KmLogging icon indicating copy to clipboard operation
KmLogging copied to clipboard

WASM support

Open mipastgt opened this issue 2 years ago • 2 comments

Are you planning to support the new WASM target in the near future? I am just evaluating the feasibility of converting my current project to a WASM browser project.

mipastgt avatar Dec 08 '23 19:12 mipastgt

Any news on that? It is slowly becoming more urgent.

mipastgt avatar Sep 01 '24 16:09 mipastgt

+1 for this

ArnyminerZ avatar Sep 26 '24 14:09 ArnyminerZ

RIP KmLogging 🪦

I'm switching to Kermit

valeriyo avatar Oct 07 '24 04:10 valeriyo

Same here 😔, I guess Kermit is the only KMP logging library with WASM support.

CXwudi avatar Oct 19 '24 01:10 CXwudi

https://GitHub.com/lexilabs-app/basic Someone should fork in the WASM logger from this library.

robertjamison avatar Oct 19 '24 01:10 robertjamison

I switched to https://github.com/oshai/kotlin-logging some time ago. It has 2.6k stars and does support WASM.

mipastgt avatar Oct 19 '24 08:10 mipastgt

I switched to oshai/kotlin-logging some time ago. It has 2.6k stars and does support WASM.

Despite being such a great library, unfortunately for Android target, it relies on slf4j-android library which is no longer maintained. But correct me if there is another way to use it in android target without slf4j-android

CXwudi avatar Oct 19 '24 14:10 CXwudi

I haven't tried this because I am still using the still existing original slf4j-android library but maybe this https://github.com/nomis/slf4j-android could be used as an altenative.

mipastgt avatar Oct 19 '24 15:10 mipastgt

Thanks for the alternative. It works well out of the box.

CXwudi avatar Oct 19 '24 15:10 CXwudi

I switched to oshai/kotlin-logging some time ago. It has 2.6k stars and does support WASM.

Despite being such a great library, unfortunately for Android target, it relies on slf4j-android library which is no longer maintained. But correct me if there is another way to use it in android target without slf4j-android

it's possible to use it with native android logging as well. more details in: https://github.com/oshai/kotlin-logging/wiki/Multiplatform-support#android-usage

oshai avatar Jan 08 '25 15:01 oshai

This library uses native android Log on android platform and does not use slf4j-android. slf4j is only used on non-android jvm targets i.e. desktop.

ellsworthrw avatar Feb 14 '25 22:02 ellsworthrw

As for WASM support I am in process of supporting WASM and it will be out in about a week. Sorry for the delay.

ellsworthrw avatar Feb 14 '25 22:02 ellsworthrw

WasmJs is now supported in the latest release, 2.0.2

ellsworthrw avatar Feb 19 '25 01:02 ellsworthrw