Minor: logging, two more utility methods.

This commit is contained in:
Mike Hearn 2016-03-01 15:12:51 +01:00
parent 1330f33aba
commit 3f19842632

View File

@ -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())
}