Skip to content

Commit be37081

Browse files
And still some more missing log libs
1 parent d6d162d commit be37081

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ dependencies {
2929
implementation 'com.typesafe:config:1.3.3'
3030
implementation 'io.github.microutils:kotlin-logging-jvm:2.0.2'
3131
implementation 'ch.qos.logback:logback-classic:1.1.7'
32+
implementation 'ch.qos.logback.contrib:logback-json-classic:0.1.5'
3233
}
3334

3435
compileKotlin {

src/main/resources/logback.xml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
<configuration>
2-
<logger name="fi.hsl" level="info" additivity="false">
2+
<appender name="stdout" class="ch.qos.logback.core.ConsoleAppender">
3+
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
4+
<layout class="ch.qos.logback.contrib.json.classic.JsonLayout">
5+
<timestampFormat>yyyy-MM-dd'T'HH:mm:ss.SSSX</timestampFormat>
6+
<timestampFormatTimezoneId>Etc/UTC</timestampFormatTimezoneId>
7+
<appendLineSeparator>true</appendLineSeparator>
8+
<includeLevel>true</includeLevel>
9+
</layout>
10+
</encoder>
11+
</appender>
12+
<logger name="fi.hsl" level="info" additivity="false">
313
<appender-ref ref="stdout" />
414
</logger>
515
<root level="warn">

0 commit comments

Comments
 (0)