Hello everyone ! I created a log outputting libra...
# feed
k
Hello everyone ! I created a log outputting library for Compose / Kotlin Multiplatform ! Once you add a dependency of this library you can output logs easily in Android Logcat and Xcode console. Especially in Xcode these logs are outputted like Android like format. You don't have to call
println()
function directly. Thank you very much 😄 https://github.com/Kate941-su/mplogger
m
And what is the advantage to any of the other logging frameworks out there which basically do the same?
1
k
@Michael Paus Hello. Thank you for writing a comment in my thread. Basically This library does the same as the other logging tools. But I could say this library is more familiar with Android developers. Developers can output like
Timber
library (not much features as
Timber
). For example of the below.
Copy code
Timber.tag("tag").d("%s", "arg0", "arg1") // Timber
MPLog.tag("Hello").v("World")// mplogger
And it can bring
Tag
notion in Android Logcat to Xcode Console. I thought this is helpful.
s
That doesn’t really make it distinct from all the other logging tools we saw lately. 👀
What the ecosystem needs is a Kotlin native zlib implementation. 😄
😂 1
💯 1
k
@Stefan Oltmann > That doesn’t really make it distinct from all the other logging tools we saw lately. 👀 Thank you for your advice! > What the ecosystem needs is a Kotlin native zlib implementation. I am so happy that I could find what the ecosystem needs. I will try it💪
👍 1
s
I'd be grateful if you succeed with that. Right now in absence of a Kotlin Multiplatform solution my lib uses pako for js & wasmJs.
Another idea I’ve been considering is porting polybool-java to Kotlin Multiplatform (KMP).It’s currently on my TODO list, but I’d be thrilled if someone else tackled it before I get to it! 🙂 Instead of putting effort into creating yet another logging framework, it might be more valuable to focus on developing solutions that we truly need to rely on Java for at the moment.
💪 1