Skip to content

🥬 Kotlin Multiplatform Logging and Analytics

License

Notifications You must be signed in to change notification settings

InkApplications/Kimchi

Repository files navigation

Kimchi

Kimchi is a multiplatform logging and analytics tool written in Kotlin.

Installation

Published to Maven Central

Maven Coordinates

com.inkapplications.kimchi:core

Logging

Start logging by adding a writer and sending logs:

fun main() {
    // Add one or more log writers:
    Kimchi.addLog(defaultWriter)

    // Send Logs:
    Kimchi.info("Hello World")
}

Analytics

Analytics is as easy as logging! Just like the logger, just add a writer and start tracking events:

fun main() {
    // Add one or more analytics writers:
    Kimchi.addAnalytics(KimchiLoggerAnalytics) // send analytics events to the logger.

    // Send Analytics Events:
    Kimchi.trackEvent("Hello Analytics!")
}

Documentation

For more examples and documentation please see the website