We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8aee3e1 commit bd036ebCopy full SHA for bd036eb
spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/features/logging/structured/otherformats/MyCustomFormat.kt
@@ -0,0 +1,12 @@
1
+package org.springframework.boot.docs.features.logging.structured.otherformats
2
+
3
+import ch.qos.logback.classic.spi.ILoggingEvent
4
+import org.springframework.boot.logging.structured.StructuredLogFormatter
5
6
+class MyCustomFormat : StructuredLogFormatter<ILoggingEvent> {
7
8
+ override fun format(event: ILoggingEvent): String {
9
+ return "time=${event.instant} level=${event.level} message=${event.message}\n"
10
+ }
11
12
+}
0 commit comments