Meta-note: I can't add the Kotlin tag since I have less than 300 rep on this site, and it doesn't exist yet
I'm working on a cross-platform project written in Java and Kotlin, and I need some decent logging.
System.out isn't in my opinion a good way to deal with logging, so I'm looking for a cross-platform logging library.
Specifically, it has to work for desktop and Android.
The project structure itself looks like this:
- Core - shared code for Android and desktop
- Android (
implementation project(":core")), platform-specific Android stuff (passed to core)
- Desktop (
implementation project(":core")), platform-specific desktop stuff (passed to core)
Which means the library has to work on both Android and desktop, since the majority of the code base is shared (platform-specific calls would crash it for obvious reasons, which is why it either needs to have a specific port for each of the platforms, but still supporting a central implementation, or work universally with both platforms).
The library doesn't need to be written in Java or Kotlin, but it has to be written in a JVM language (Java, Kotlin, Scala, Groovy, etc.)