Class StackdriverLoggingAutoConfiguration

java.lang.Object
com.google.cloud.spring.autoconfigure.logging.StackdriverLoggingAutoConfiguration

@AutoConfiguration @ConditionalOnClass({org.springframework.web.servlet.HandlerInterceptor.class,com.google.cloud.logging.logback.LoggingAppender.class,TraceIdExtractor.class}) @ConditionalOnMissingBean(name="stackdriverTracingCustomizer") @AutoConfigureAfter(StackdriverTraceAutoConfiguration.class) @ConditionalOnWebApplication(type=SERVLET) @ConditionalOnProperty(value="spring.cloud.gcp.logging.enabled", matchIfMissing=true) @Import(LoggingWebMvcConfigurer.class) public class StackdriverLoggingAutoConfiguration extends Object
This class configures a Web MVC interceptor to capture trace IDs for log correlation. This configuration is turned on only if Trace support is not used and Web MVC is used. Otherwise, the MDC context will be used by the Logback appenders.
  • Constructor Details

    • StackdriverLoggingAutoConfiguration

      public StackdriverLoggingAutoConfiguration()
  • Method Details