Move testapp's logger to internal property
This commit is contained in:
parent
803e18239d
commit
c1a14d343c
1 changed files with 9 additions and 2 deletions
|
@ -34,6 +34,13 @@ class Main private constructor() {
|
||||||
* @since v1-alpha10
|
* @since v1-alpha10
|
||||||
*/
|
*/
|
||||||
companion object {
|
companion object {
|
||||||
|
/**
|
||||||
|
* Contains the [Logger] instance of the engine.
|
||||||
|
*
|
||||||
|
* @since v1-alpha10
|
||||||
|
*/
|
||||||
|
internal val logger: Logger = Logger(channel = "testapp")
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The program entrypoint.
|
* The program entrypoint.
|
||||||
*
|
*
|
||||||
|
@ -42,8 +49,8 @@ class Main private constructor() {
|
||||||
*/
|
*/
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
fun main(arguments: Array<String>) {
|
fun main(arguments: Array<String>) {
|
||||||
// Get log channel
|
// Update engine configuration
|
||||||
val logger: Logger = Logger(channel = "testapp")
|
EngineConfiguration.logLevels = Level.entries.toMutableSet()
|
||||||
|
|
||||||
// Initialize engine
|
// Initialize engine
|
||||||
Engine.initialize()
|
Engine.initialize()
|
||||||
|
|
Loading…
Reference in a new issue