Package org.apereo.cas.logging
Class GoogleCloudAppender
java.lang.Object
org.apache.logging.log4j.core.AbstractLifeCycle
org.apache.logging.log4j.core.filter.AbstractFilterable
org.apache.logging.log4j.core.appender.AbstractAppender
org.apereo.cas.logging.GoogleCloudAppender
- All Implemented Interfaces:
org.apache.logging.log4j.core.Appender,org.apache.logging.log4j.core.filter.Filterable,org.apache.logging.log4j.core.impl.LocationAware,org.apache.logging.log4j.core.LifeCycle,org.apache.logging.log4j.core.LifeCycle2
@Plugin(name="GoogleCloudAppender",
category="Core",
elementType="appender",
printObject=true)
public class GoogleCloudAppender
extends org.apache.logging.log4j.core.appender.AbstractAppender
This is
GoogleCloudAppender.- Since:
- 7.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.logging.log4j.core.appender.AbstractAppender
org.apache.logging.log4j.core.appender.AbstractAppender.Builder<B extends org.apache.logging.log4j.core.appender.AbstractAppender.Builder<B>>Nested classes/interfaces inherited from interface org.apache.logging.log4j.core.LifeCycle
org.apache.logging.log4j.core.LifeCycle.State -
Field Summary
Fields inherited from class org.apache.logging.log4j.core.AbstractLifeCycle
DEFAULT_STOP_TIMEOUT, DEFAULT_STOP_TIMEUNITFields inherited from interface org.apache.logging.log4j.core.Appender
ELEMENT_TYPE, EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionGoogleCloudAppender(String name, org.apache.logging.log4j.core.config.Configuration config, org.apache.logging.log4j.core.config.AppenderRef appenderRef, org.apache.logging.log4j.core.Filter filter, String projectId) -
Method Summary
Modifier and TypeMethodDescriptionvoidappend(org.apache.logging.log4j.core.LogEvent logEvent) static GoogleCloudAppenderbuild(String name, String projectId, org.apache.logging.log4j.core.config.AppenderRef appenderRef, org.apache.logging.log4j.core.Filter filter, org.apache.logging.log4j.core.config.Configuration config) Build google cloud appender.Methods inherited from class org.apache.logging.log4j.core.appender.AbstractAppender
error, error, error, getHandler, getLayout, getName, ignoreExceptions, parseInt, requiresLocation, setHandler, toStringMethods inherited from class org.apache.logging.log4j.core.filter.AbstractFilterable
addFilter, getFilter, getPropertyArray, hasFilter, isFiltered, removeFilter, start, stopMethods inherited from class org.apache.logging.log4j.core.AbstractLifeCycle
getState, initialize, isInitialized, isStarted, isStarting, isStopped, isStopping, stopMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.logging.log4j.core.LifeCycle
getState, initialize, isStarted, isStopped, start, stop
-
Constructor Details
-
GoogleCloudAppender
-
-
Method Details
-
build
@PluginFactory public static GoogleCloudAppender build(@PluginAttribute("name") String name, @PluginAttribute("projectId") String projectId, @PluginElement("AppenderRef") org.apache.logging.log4j.core.config.AppenderRef appenderRef, @PluginElement("Filter") org.apache.logging.log4j.core.Filter filter, @PluginConfiguration org.apache.logging.log4j.core.config.Configuration config) Build google cloud appender.- Parameters:
name- the nameappenderRef- the appender reffilter- the filterconfig- the config- Returns:
- the google cloud appender
-
append
public void append(org.apache.logging.log4j.core.LogEvent logEvent)
-