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
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_TIMEUNIT

    Fields inherited from interface org.apache.logging.log4j.core.Appender

    ELEMENT_TYPE, EMPTY_ARRAY
  • Constructor Summary

    Constructors
    Constructor
    Description
    GoogleCloudAppender(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 Type
    Method
    Description
    void
    append(org.apache.logging.log4j.core.LogEvent logEvent)
     
    build(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, toString

    Methods inherited from class org.apache.logging.log4j.core.filter.AbstractFilterable

    addFilter, getFilter, getPropertyArray, hasFilter, isFiltered, removeFilter, start, stop

    Methods inherited from class org.apache.logging.log4j.core.AbstractLifeCycle

    getState, initialize, isInitialized, isStarted, isStarting, isStopped, isStopping, stop

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.logging.log4j.core.LifeCycle

    getState, initialize, isStarted, isStopped, start, stop
  • Constructor Details

    • GoogleCloudAppender

      public GoogleCloudAppender(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 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 name
      appenderRef - the appender ref
      filter - the filter
      config - the config
      Returns:
      the google cloud appender
    • append

      public void append(org.apache.logging.log4j.core.LogEvent logEvent)