Move testapp's logger to internal property

This commit is contained in:
JeremyStar™ 2024-12-20 01:32:40 +01:00
parent 803e18239d
commit c1a14d343c
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -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<String>) {
// Get log channel
val logger: Logger = Logger(channel = "testapp")
// Update engine configuration
EngineConfiguration.logLevels = Level.entries.toMutableSet()
// Initialize engine
Engine.initialize()