1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 16:28:12 -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.KobaltException
import com.beust.kobalt.api.Kobalt import com.beust.kobalt.api.Kobalt
import com.beust.kobalt.maven.aether.Exceptions 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.LocalDateTime
import java.time.format.DateTimeFormatter import java.time.format.DateTimeFormatter
@ -51,11 +53,11 @@ object KobaltLogger {
var LOG_LEVEL: Int = 1 var LOG_LEVEL: Int = 1
val logger: Logger get() = val logger: Logger get() =
if (Kobalt.context != null) { if (Kobalt.context != null) {
Logger(Kobalt.context!!.args.dev) Logger(Kobalt.context!!.args.dev)
} else { } else {
Logger(false) Logger(false)
} }
} }
class Logger(val dev: Boolean) { class Logger(val dev: Boolean) {