https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
z

zsperske

08/05/2020, 10:15 PM
Does anyone have a favorite logging library for JVM/JS/Native?
e

edenman

08/05/2020, 10:32 PM
I haven’t started using it yet, but I’d probably be looking at Timber once it moves from snapshot to alpha/rc/whatever https://twitter.com/jakewharton/status/1012413858177265666?lang=en
c

Casey Brooks

08/05/2020, 10:33 PM
There’s not really a consensus that I’ve seen, a lot of people just do println or a (very lightweight wrapper around println) instead of using a proper logger. I’ve been rewriting an old Java one I’ve used for years as MPP (https://github.com/copper-leaf/clog) that’s pretty simple and straightforward, but also has some nice things in it like tag inference and setup as an SLF4J implementation on the JVM platform (so other library’s logs are passed-through to Clog. Currently targets JVM, JS and iOS. It’s not published to Bintray yet (just GH packages), but I’m happy to publish those artifacts if you want to use it.
a

aleksey.tomin

08/06/2020, 6:44 AM
I’m using kermit logger https://github.com/touchlab/Kermit with my addons (async log to file)
z

zsperske

08/06/2020, 1:54 PM
thanks all for the replies!
k

kpgalligan

08/06/2020, 7:14 PM
I did a timber version off of what Jake was doing back then, but that’s long since been dumped. I don’t know if he’s got any KMP plans at the moment. Our team did Kermit, which we’re using generally.
2 Views