replace DEBUG in enum of LogLevels

This commit is contained in:
InsanusMokrassar committed 2022-06-08 21:45:37 +06:00
1 parent 612e4719f0
commit 5f13b11efc
4 files changed
+6 -6

No files matched your search

+2 -2
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
}