com.google.cloud.spring.logging.logback-json-appender.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-cloud-gcp-logging Show documentation
Show all versions of spring-cloud-gcp-logging Show documentation
Spring Framework on Google Cloud Stackdriver Logging
<?xml version="1.0" encoding="UTF-8"?> <!-- Stackdriver json-log format provided for import. --> <included> <property name="projectId" value="${projectId:-${SPRING_CLOUD_GCP_LOGGING_PROJECT_ID}}"/> <appender name="CONSOLE_JSON" class="ch.qos.logback.core.ConsoleAppender"> <encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder"> <layout class="com.google.cloud.spring.logging.StackdriverJsonLayout"> <projectId>${projectId}</projectId> <!--<traceIdMdcField>traceId</traceIdMdcField>--> <!--<spanIdMdcField>spanId</spanIdMdcField>--> <!--<includeTraceId>true</includeTraceId>--> <!--<includeSpanId>true</includeSpanId>--> <!--<includeLevel>true</includeLevel>--> <!--<includeThreadName>true</includeThreadName>--> <!--<includeMDC>true</includeMDC>--> <!--<includeLoggerName>true</includeLoggerName>--> <!--<includeFormattedMessage>true</includeFormattedMessage>--> <!--<includeExceptionInMessage>true</includeExceptionInMessage>--> <!--<includeContextName>true</includeContextName>--> <!--<includeMessage>false</includeMessage>--> <!--<includeException>false</includeException>--> </layout> </encoder> </appender> </included>