Thread
#multiplatform
    z

    zsperske

    2 years ago
    Does anyone have a favorite logging library for JVM/JS/Native?
    e

    edenman

    2 years ago
    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

    2 years ago
    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.
    aleksey.tomin

    aleksey.tomin

    2 years ago
    I’m using kermit loggerhttps://github.com/touchlab/Kermit with my addons (async log to file)
    z

    zsperske

    2 years ago
    thanks all for the replies!
    kpgalligan

    kpgalligan

    2 years ago
    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.