com.google.cloud.spring.logging.logback-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 appender logback configuration provided for import. --> <included> <property name="STACKDRIVER_LOG_NAME" value="${STACKDRIVER_LOG_NAME:-spring.log}"/> <property name="STACKDRIVER_LOG_FLUSH_LEVEL" value="${STACKDRIVER_LOG_FLUSH_LEVEL:-OFF}"/> <appender name="STACKDRIVER" class="com.google.cloud.spring.logging.LoggingAppender"> <log>${STACKDRIVER_LOG_NAME}</log> <!-- Optional : default spring.log --> <loggingEventEnhancer>com.google.cloud.spring.logging.TraceIdLoggingEnhancer</loggingEventEnhancer> <flushLevel>${STACKDRIVER_LOG_FLUSH_LEVEL}</flushLevel> <!-- Optional : default OFF --> </appender> </included>