mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -07:00
NPE.
This commit is contained in:
parent
4f87c14da3
commit
8fe54ba541
1 changed files with 6 additions and 1 deletions
|
@ -8,7 +8,12 @@ internal interface KobaltLogger {
|
|||
companion object {
|
||||
public var LOG_LEVEL : Int = 1
|
||||
|
||||
val logger : Logger get() = Logger(Kobalt.context!!.args.dev)
|
||||
val logger : Logger get() =
|
||||
if (Kobalt.context != null) {
|
||||
Logger(Kobalt.context!!.args.dev)
|
||||
} else {
|
||||
Logger(false)
|
||||
}
|
||||
|
||||
fun log(level: Int, s: String) {
|
||||
if (level <= LOG_LEVEL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue