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