From c1a14d343c263b5b89ce36e298a8f8b335ae13c7 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Fri, 20 Dec 2024 01:32:40 +0100 Subject: [PATCH] Move testapp's logger to internal property --- .../kotlin/de/staropensource/engine/testapp/Main.kt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/testapp/src/main/kotlin/de/staropensource/engine/testapp/Main.kt b/testapp/src/main/kotlin/de/staropensource/engine/testapp/Main.kt index 434731d..bf22305 100644 --- a/testapp/src/main/kotlin/de/staropensource/engine/testapp/Main.kt +++ b/testapp/src/main/kotlin/de/staropensource/engine/testapp/Main.kt @@ -34,6 +34,13 @@ class Main private constructor() { * @since v1-alpha10 */ companion object { + /** + * Contains the [Logger] instance of the engine. + * + * @since v1-alpha10 + */ + internal val logger: Logger = Logger(channel = "testapp") + /** * The program entrypoint. * @@ -42,8 +49,8 @@ class Main private constructor() { */ @JvmStatic fun main(arguments: Array) { - // Get log channel - val logger: Logger = Logger(channel = "testapp") + // Update engine configuration + EngineConfiguration.logLevels = Level.entries.toMutableSet() // Initialize engine Engine.initialize()