Does anyone have a favorite logging library for JV...
# multiplatform
z
Does anyone have a favorite logging library for JVM/JS/Native?
e
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
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
I’m using kermit logger https://github.com/touchlab/Kermit with my addons (async log to file)
z
thanks all for the replies!
k
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.