Class LoggingAppender

java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.UnsynchronizedAppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
com.google.cloud.logging.logback.LoggingAppender
com.google.cloud.spring.logging.LoggingAppender
All Implemented Interfaces:
ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent>, ch.qos.logback.core.spi.ContextAware, ch.qos.logback.core.spi.FilterAttachable<ch.qos.logback.classic.spi.ILoggingEvent>, ch.qos.logback.core.spi.LifeCycle

public class LoggingAppender extends com.google.cloud.logging.logback.LoggingAppender
A Google Cloud Java Logback LoggingAppender wrapper that configures it for Spring Cloud GCP.
Since:
1.2
  • Field Summary

    Fields inherited from class com.google.cloud.logging.logback.LoggingAppender

    DEFAULT_INSTRUMENTATION_VERSION, JAVA_LOGBACK_LIBRARY_NAME

    Fields inherited from class ch.qos.logback.core.UnsynchronizedAppenderBase

    name, started

    Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase

    context
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected com.google.cloud.logging.LoggingOptions
    Wraps LoggingAppender.getLoggingOptions() to add UserAgentHeaderProvider configuration, so that usage can be properly attributed to Spring Cloud GCP.

    Methods inherited from class com.google.cloud.logging.logback.LoggingAppender

    addEnhancer, addLoggingEventEnhancer, append, flush, getWriteSynchronicity, setAutoPopulateMetadata, setCredentialsFile, setFlushLevel, setLog, setLogbackBatchingSettings, setLogDestinationProjectId, setPartialSuccess, setRedirectToStdout, setResourceType, setWriteSynchronicity, start, stop

    Methods inherited from class ch.qos.logback.core.UnsynchronizedAppenderBase

    addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, toString

    Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase

    addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface ch.qos.logback.core.spi.ContextAware

    addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
  • Constructor Details

    • LoggingAppender

      public LoggingAppender()
  • Method Details

    • getLoggingOptions

      protected com.google.cloud.logging.LoggingOptions getLoggingOptions()
      Wraps LoggingAppender.getLoggingOptions() to add UserAgentHeaderProvider configuration, so that usage can be properly attributed to Spring Cloud GCP.
      Overrides:
      getLoggingOptions in class com.google.cloud.logging.logback.LoggingAppender