1 changed files with 12 additions and 0 deletions
@ -0,0 +1,12 @@
@@ -0,0 +1,12 @@
|
||||
package org.springframework.boot.docs.features.logging.structured.otherformats |
||||
|
||||
import ch.qos.logback.classic.spi.ILoggingEvent |
||||
import org.springframework.boot.logging.structured.StructuredLogFormatter |
||||
|
||||
class MyCustomFormat : StructuredLogFormatter<ILoggingEvent> { |
||||
|
||||
override fun format(event: ILoggingEvent): String { |
||||
return "time=${event.instant} level=${event.level} message=${event.message}\n" |
||||
} |
||||
|
||||
} |
||||
Loading…
Reference in new issue