1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 00:17:11 -07:00
This commit is contained in:
Cedric Beust 2017-03-10 09:55:22 -08:00
parent e8bdd888a7
commit 94082e1251

View file

@ -5,6 +5,8 @@ import com.beust.kobalt.AsciiArt
import com.beust.kobalt.KobaltException
import com.beust.kobalt.api.Kobalt
import com.beust.kobalt.maven.aether.Exceptions
import jdk.nashorn.internal.objects.Global.print
import java.lang.Exception
import java.time.LocalDateTime
import java.time.format.DateTimeFormatter
@ -51,11 +53,11 @@ object KobaltLogger {
var LOG_LEVEL: Int = 1
val logger: Logger get() =
if (Kobalt.context != null) {
Logger(Kobalt.context!!.args.dev)
} else {
Logger(false)
}
if (Kobalt.context != null) {
Logger(Kobalt.context!!.args.dev)
} else {
Logger(false)
}
}
class Logger(val dev: Boolean) {