Skip to content

Commit

Permalink
Merge pull request #27 from espoon-voltti/logging
Browse files Browse the repository at this point in the history
add logging config
  • Loading branch information
Joosakur authored Nov 27, 2023
2 parents a4e3dcb + 37da6be commit 01d4652
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions service/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down
11 changes: 11 additions & 0 deletions service/src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>

<configuration>
<springProperty scope="context" name="appName" source="spring.application.name"/>
<include resource="org/springframework/boot/logging/logback/defaults.xml"/>
<include resource="org/springframework/boot/logging/logback/console-appender.xml"/>

<root level="INFO">
<appender-ref ref="CONSOLE"/>
</root>
</configuration>

0 comments on commit 01d4652

Please sign in to comment.