apiVersion: v1
data:
  logback.xml: |
    <configuration>
      <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
          <encoder class="net.logstash.logback.encoder.LoggingEventCompositeJsonEncoder">
              <providers>
                  <timestamp/>
                  <message/>
                  <loggerName/>
                  <threadName/>
                  <logLevel/>
                  <mdc/>
                  <throwableClassName/>
                  <stackTrace>
                      <throwableConverter class="net.logstash.logback.stacktrace.ShortenedThrowableConverter">
                          <maxLength>1024</maxLength>
                      </throwableConverter>
                  </stackTrace>
                  <throwableRootCauseClassName/>
                  <rootStackTraceElement/>
                  <callerData/>
              </providers>
          </encoder>
      </appender>
      <root level="INFO">
          <appender-ref ref="STDOUT" />
      </root>
    </configuration>
kind: ConfigMap
metadata:
  name: logback
