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()