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

commonMain.de.halfbit.logger.LoggableLevel.kt Maven / Gradle / Ivy

The newest version!
/** Copyright 2024 Halfbit GmbH, Sergej Shafarenka */
package de.halfbit.logger

public enum class LoggableLevel(
    public val weight: Int,
) {
    /** For sending all messages to registered sinks. */
    Everything(LogLevel.Debug.weight),

    /** For sending `LogLevel.Info`, `LogLevel.Warning` and `LogLevel.Error` messages to registered sinks. */
    InfoAndSevere(LogLevel.Info.weight),

    /** For sending `LogLevel.Warning` and `LogLevel.Error` messages to registered sinks. */
    WarningsAndSevere(LogLevel.Warning.weight),

    /** For sending `LogLevel.Error` messages only to registered sinks. */
    ErrorsOnly(LogLevel.Error.weight),

    /** For sending no messages to registered sinks. */
    Nothing(LogLevel.Error.weight + 1),
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy