All Downloads are FREE. Search and download functionalities are using the official Maven repository.

iosMain.com.paoapps.fifi.log.log.kt Maven / Gradle / Ivy

Go to download

Kotlin Multiplatform Mobile framework for optimal code sharing between iOS and Android.

There is a newer version: 0.0.31
Show newest version
package com.paoapps.fifi.log

interface IOSLoggingDelegate {
    fun error(message: String)
    fun warn(message: String)
    fun debug(message: String)
    fun info(message: String)
}

var iosLoggingDelegate: IOSLoggingDelegate? = null

actual fun error(message: String, error: Throwable?, vararg args: String) {
    iosLoggingDelegate?.error(message)
}

actual fun warn(message: String, error: Throwable?, vararg args: String) {
    iosLoggingDelegate?.warn(message)
}

actual fun debug(message: String, vararg args: String) {
    iosLoggingDelegate?.debug(message)
}

actual fun info(message: String, vararg args: String) {
    iosLoggingDelegate?.info(message)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy