mirror of
https://github.com/corda/corda.git
synced 2025-01-18 18:56:28 +00:00
Minor: logging, two more utility methods.
This commit is contained in:
parent
1330f33aba
commit
3f19842632
@ -92,6 +92,8 @@ class BriefLogFormatter : Formatter() {
|
||||
}
|
||||
}
|
||||
|
||||
fun loggingOn(vararg names: String) = initVerbose(*names)
|
||||
fun loggingOff(vararg names: String) = initVerbose(*names.map { "-" + it }.toTypedArray())
|
||||
fun loggingOn(vararg classes: KClass<*>) = initVerbose(*classes.map { "+" + it.java.`package`.name }.toTypedArray())
|
||||
fun loggingOff(vararg classes: KClass<*>) = initVerbose(*classes.map { "-" + it.java.`package`.name }.toTypedArray())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user