Hi everyone, I startet a small KMP project two days ago and found out logging is a bit different there, compared what I know from Android. Lo(n)g story short, for fun I created a lib for that. It is currently just on GitHub, but can be used very easy by local-maven. Feel free to use & contribute https://github.com/Five-Star-Development/KMP-logger
c
Colton Idle
03/13/2025, 3:59 AM
i had this problem too. lmao. started to create a new lib. but then found out the kmp wizards at touchlab already created this: https://github.com/touchlab/Kermit
👍 1
b
Brill
03/13/2025, 6:15 AM
same issue, but we just created a simple Log.x clone and implemented actual classes for each platform.
great that you packaged it though, it will probably save someone some time :)
❤️ 1
m
Michael Paus
03/13/2025, 7:34 AM
Oh no, please not yet another logging library. There are already far too many of them. Just use Kotlin-Logging and you are done. Haven’t you done any research about what already exists before you started to write your own?
b
Benny Özcetin
03/13/2025, 11:59 AM
Yeah, I have to say it was also more of a fun think to do 🙂 that why I created it. I will check the other once out, thank you 🙂
b
Brill
03/13/2025, 3:16 PM
@Michael Paus I find that a lot of the logging libraries out there are too complicated they are really not needed. in my case I tried a few and ended up dumping them for 10 minutes of work to just make our own Log.x code.