All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.spring.logging.logback-json-appender.xml Maven / Gradle / Ivy

There is a newer version: 5.8.0
Show newest version
<?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>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy