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

commonMain.utils.Combination.kt Maven / Gradle / Ivy

package dev.inmo.kslog.common.utils

import dev.inmo.kslog.common.CallbackKSLog
import dev.inmo.kslog.common.KSLog

infix operator fun KSLog.plus(other: KSLog) = CallbackKSLog { l, t, m, e ->
    val resultOfFirst = runCatching {
        [email protected](l, t, m, e)
    }
    val resultOfSecond = runCatching {
        other.performLog(l, t, m, e)
    }
    resultOfFirst.onFailure { throw it }
    resultOfSecond.onFailure { throw it }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy