mirror of
https://github.com/InsanusMokrassar/KSLog.git
synced 2024-12-22 14:07:15 +00:00
KSLog with varargs
This commit is contained in:
parent
63b29d3665
commit
c15d7f23e2
@ -4,6 +4,7 @@
|
||||
|
||||
* New logger `TagLogger` and now extension `Any#logger` will use it to decrease objects allocations
|
||||
* Now it is possible to create `KSLog` using any iterable
|
||||
* Now it is possible to create `KSLog` using vararg log levels
|
||||
|
||||
## 0.0.1
|
||||
|
||||
|
@ -52,6 +52,13 @@ fun KSLog(
|
||||
}
|
||||
}
|
||||
|
||||
inline fun KSLog(
|
||||
defaultTag: String,
|
||||
firstLevel: LogLevel,
|
||||
secondLevel: LogLevel,
|
||||
vararg otherLevels: LogLevel
|
||||
): KSLog = KSLog(defaultTag, setOf(firstLevel, secondLevel, *otherLevels))
|
||||
|
||||
fun KSLog(
|
||||
defaultTag: String,
|
||||
minLoggingLevel: LogLevel = LogLevel.VERBOSE
|
||||
|
Loading…
Reference in New Issue
Block a user