From 37da6be85130dd055e4f7e1b46fe0a5da3d99c11 Mon Sep 17 00:00:00 2001 From: Joosa Kurvinen Date: Mon, 27 Nov 2023 10:01:10 +0200 Subject: [PATCH] add logging config --- service/build.gradle.kts | 4 ++++ service/src/main/resources/logback-spring.xml | 11 +++++++++++ 2 files changed, 15 insertions(+) create mode 100644 service/src/main/resources/logback-spring.xml diff --git a/service/build.gradle.kts b/service/build.gradle.kts index 059f6b6..13806a2 100644 --- a/service/build.gradle.kts +++ b/service/build.gradle.kts @@ -44,6 +44,10 @@ dependencies { api(platform("com.fasterxml.jackson:jackson-bom:2.16.0")) implementation("com.fasterxml.jackson.module:jackson-module-kotlin") + implementation("net.logstash.logback:logstash-logback-encoder") + implementation("ch.qos.logback:logback-access") + implementation("io.github.microutils:kotlin-logging-jvm") + testImplementation(kotlin("test")) testImplementation(kotlin("test-junit5")) api(platform("org.junit:junit-bom:5.10.0")) diff --git a/service/src/main/resources/logback-spring.xml b/service/src/main/resources/logback-spring.xml new file mode 100644 index 0000000..98661da --- /dev/null +++ b/service/src/main/resources/logback-spring.xml @@ -0,0 +1,11 @@ + + + + + + + + + + +