replace DEBUG in enum of LogLevels

This commit is contained in:
2022-06-08 21:45:37 +06:00
parent 612e4719f0
commit 5f13b11efc
4 changed files with 6 additions and 6 deletions

View File

@@ -2,12 +2,12 @@ package dev.inmo.kslog.common
enum class LogLevel {
DEBUG,
VERBOSE,
INFO,
WARNING,
ERROR,
ASSERT,
DEBUG
}
interface KSLog {
@@ -65,7 +65,7 @@ fun KSLog(
fun KSLog(
defaultTag: String,
minLoggingLevel: LogLevel = LogLevel.VERBOSE
minLoggingLevel: LogLevel = LogLevel.values().first()
): KSLog = KSLog (defaultTag) { l, _, _, _ ->
minLoggingLevel.ordinal <= l.ordinal
}