mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 16:28:12 -07:00
Indent.
This commit is contained in:
parent
e8bdd888a7
commit
94082e1251
1 changed files with 7 additions and 5 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue