mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Use an object KobaltLogger.
This commit is contained in:
parent
48882978f0
commit
afb6b8e76f
2 changed files with 7 additions and 11 deletions
|
@ -1,10 +1,8 @@
|
|||
package com.beust.kobalt.internal
|
||||
|
||||
import com.beust.kobalt.misc.KobaltLogger
|
||||
import com.beust.kobalt.misc.NamedThreadFactory
|
||||
import com.beust.kobalt.misc.ToString
|
||||
import com.beust.kobalt.misc.log
|
||||
import com.beust.kobalt.misc.KobaltLogger.*
|
||||
import com.google.common.collect.HashMultimap
|
||||
import java.util.concurrent.*
|
||||
|
||||
|
|
|
@ -22,8 +22,7 @@ fun Any.error(text: String, e: Throwable? = null) {
|
|||
KobaltLogger.logger.error(javaClass.simpleName, text, e)
|
||||
}
|
||||
|
||||
interface KobaltLogger {
|
||||
companion object {
|
||||
object KobaltLogger {
|
||||
public var LOG_LEVEL: Int = 1
|
||||
|
||||
val logger: Logger get() =
|
||||
|
@ -33,7 +32,6 @@ interface KobaltLogger {
|
|||
Logger(false)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class Logger(val dev: Boolean) {
|
||||
val FORMAT = SimpleDateFormat("HH:mm:ss.SSS")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue