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

jvmMain.dev.fritz2.lens.Message.kt Maven / Gradle / Ivy

The newest version!
package dev.fritz2.lens

import com.google.devtools.ksp.processing.KSPLogger

enum class Severity {
    Warning, Error
}

data class Message(val severity: Severity, val message: String)

fun KSPLogger.log(message: Message) {
    when (message.severity) {
        Severity.Warning -> this.warn(message.message)
        Severity.Error -> this.error(message.message)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy