From d86c8979dce52d6f269a8ad2c8bff34ca29615f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20=E2=80=9CCLOVIS=E2=80=9D=20Canet?= Date: Wed, 1 Jul 2026 09:28:01 +0200 Subject: [PATCH] test: Improve logging in tests --- gradle/libs.versions.toml | 4 ++++ server/build.gradle.kts | 2 ++ server/src/commonTest/resources/simplelogger.properties | 1 + 3 files changed, 7 insertions(+) create mode 100644 server/src/commonTest/resources/simplelogger.properties diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 6414fef..e89ad22 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -8,6 +8,8 @@ arrow = "2.2.3" # https://github.com/arrow-kt/arrow/releases kotlinx-coroutines = "1.11.0" # https://github.com/Kotlin/kotlinx.coroutines/releases +slf4j = "2.0.17" # https://central.sonatype.com/artifact/org.slf4j/slf4j-simple + [plugins] [libraries] @@ -24,4 +26,6 @@ arrow-core = { module = "io.arrow-kt:arrow-core", version.ref = "arrow" } kotlinx-coroutines = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinx-coroutines" } +slf4j-simple = { module = "org.slf4j:slf4j-simple", version.ref = "slf4j" } + [bundles] diff --git a/server/build.gradle.kts b/server/build.gradle.kts index eb7b9df..a46fba9 100644 --- a/server/build.gradle.kts +++ b/server/build.gradle.kts @@ -32,7 +32,9 @@ kotlin { implementation(libsCommon.kotlin.test) implementation(libs.ktor.server.contentNegotiation) implementation(libs.ktor.client.contentNegotiation) + implementation(libs.ktor.client.logging) implementation(libs.ktor.kotlinxJson) + implementation(libs.slf4j.simple) implementation(projects.client) implementation(projects.clientArrow) } diff --git a/server/src/commonTest/resources/simplelogger.properties b/server/src/commonTest/resources/simplelogger.properties new file mode 100644 index 0000000..e0f0d79 --- /dev/null +++ b/server/src/commonTest/resources/simplelogger.properties @@ -0,0 +1 @@ +org.slf4j.simpleLogger.defaultLogLevel=trace -- 2.51.2