mirror of
https://github.com/InsanusMokrassar/KSLog.git
synced 2026-11-03 01:53:54 +00:00
KSLog with iterable
This commit is contained in:
1 parent
2b79b6d060
commit
63b29d3665
2 files changed
+7
-3
No files matched your search
@@ -44,9 +44,12 @@ expect fun KSLog(
|
||||
|
||||
fun KSLog(
|
||||
defaultTag: String,
|
||||
levels: Set<LogLevel>
|
||||
): KSLog = KSLog (defaultTag) { l, _, _, _ ->
|
||||
l in levels
|
||||
levels: Iterable<LogLevel>
|
||||
): KSLog {
|
||||
val levels = levels.toSet()
|
||||
return KSLog (defaultTag) { l, _, _, _ ->
|
||||
l in levels
|
||||
}
|
||||
}
|
||||
|
||||
fun KSLog(
|
||||
|
||||
Reference in new issue
Block a user