Kotlin - Kermit

Kotlin Multiplatform Logging

Introducció

Kermit s primary purpose is to allow log statements from Kotlin code to be written to composable log outputs. Out of the box, the library defaults to platform-specific loggers such as Logcat and OSLog, but is easy to extend and configure.

SLF4J

The flexible API of Kermit allows us to integrate with other platform logging frameworks.

SLF4J is a facade - a unifying API over the myriad of logging libraries available in the JVM ecosystem. One of its defining features is its ability to auto-detect the chosen logging implementation at runtime just by including the dependency on the classpath.