/Kimchi

Kotlin Multiplatform Logging and Analytics

Primary LanguageKotlinMIT LicenseMIT

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