Package com.google.cloud.spring.logging
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_NAMEFields inherited from class ch.qos.logback.core.UnsynchronizedAppenderBase
name, startedFields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.google.cloud.logging.LoggingOptionsWrapsLoggingAppender.getLoggingOptions()to addUserAgentHeaderProviderconfiguration, 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, stopMethods inherited from class ch.qos.logback.core.UnsynchronizedAppenderBase
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, toStringMethods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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()WrapsLoggingAppender.getLoggingOptions()to addUserAgentHeaderProviderconfiguration, so that usage can be properly attributed to Spring Cloud GCP.- Overrides:
getLoggingOptionsin classcom.google.cloud.logging.logback.LoggingAppender
-