From 653f47d5dc599304861ffee6efe3ead85ebfd867 Mon Sep 17 00:00:00 2001 From: usbharu Date: Wed, 6 Mar 2024 15:11:10 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B5=B7=E5=8B=95=E6=99=82=E3=81=AB?= =?UTF-8?q?=E8=AA=AD=E3=81=BF=E8=BE=BC=E3=82=93=E3=81=A0=E3=83=A2=E3=82=B8?= =?UTF-8?q?=E3=83=A5=E3=83=BC=E3=83=AB=E3=81=AE=E5=90=8D=E5=89=8D=E3=82=92?= =?UTF-8?q?=E8=A1=A8=E7=A4=BA=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- broker/src/main/kotlin/dev/usbharu/owl/broker/Main.kt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/broker/src/main/kotlin/dev/usbharu/owl/broker/Main.kt b/broker/src/main/kotlin/dev/usbharu/owl/broker/Main.kt index 83cbaacd..092ffc62 100644 --- a/broker/src/main/kotlin/dev/usbharu/owl/broker/Main.kt +++ b/broker/src/main/kotlin/dev/usbharu/owl/broker/Main.kt @@ -22,10 +22,18 @@ import kotlinx.coroutines.runBlocking import org.koin.core.context.startKoin import org.koin.dsl.module import org.koin.ksp.generated.defaultModule +import org.slf4j.LoggerFactory import java.util.* +val logger = LoggerFactory.getLogger("MAIN") + fun main() { - val moduleContext = ServiceLoader.load(ModuleContext::class.java).first() + val moduleContexts = ServiceLoader.load(ModuleContext::class.java) + + val moduleContext = moduleContexts.first() + + logger.info("Use module name: {}", moduleContext) + val koin = startKoin { printLogger()