Class GeodeLoggingApplicationListener

java.lang.Object
org.springframework.geode.context.logging.GeodeLoggingApplicationListener
All Implemented Interfaces:
EventListener, org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>, org.springframework.context.event.GenericApplicationListener, org.springframework.context.event.SmartApplicationListener, org.springframework.core.Ordered

public class GeodeLoggingApplicationListener extends Object implements org.springframework.context.event.GenericApplicationListener
Spring GenericApplicationListener used to configure Apache Geode Logging from existing Spring Data for Apache Geode Logging configuration support, such as when using the EnableLogging annotation or alternatively using Properties. This listener must be ordered before the Spring Boot LoggingApplicationListener.
Since:
1.3.0
See Also:
  • Properties
  • SpringApplication
  • ApplicationEnvironmentPreparedEvent
  • LoggingApplicationListener
  • ApplicationContext
  • ApplicationEvent
  • GenericApplicationListener
  • Ordered
  • Environment
  • Field Details

    • SPRING_BOOT_DATA_GEMFIRE_LOG_LEVEL_PROPERTY

      public static final String SPRING_BOOT_DATA_GEMFIRE_LOG_LEVEL_PROPERTY
      See Also:
    • SPRING_DATA_GEMFIRE_CACHE_LOG_LEVEL

      public static final String SPRING_DATA_GEMFIRE_CACHE_LOG_LEVEL
      See Also:
    • SPRING_DATA_GEMFIRE_LOGGING_LOG_LEVEL

      public static final String SPRING_DATA_GEMFIRE_LOGGING_LOG_LEVEL
      See Also:
  • Constructor Details

    • GeodeLoggingApplicationListener

      public GeodeLoggingApplicationListener()
  • Method Details

    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered
      Specified by:
      getOrder in interface org.springframework.context.event.SmartApplicationListener
    • onApplicationEvent

      public void onApplicationEvent(@Nullable org.springframework.context.ApplicationEvent event)
      Specified by:
      onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
    • onApplicationEnvironmentPreparedEvent

      protected void onApplicationEnvironmentPreparedEvent(@NonNull org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent environmentPreparedEvent)
    • isSystemPropertySet

      protected boolean isSystemPropertySet(@Nullable String propertyName)
    • isSystemPropertyNotSet

      protected boolean isSystemPropertyNotSet(@Nullable String propertyName)
    • setSystemProperty

      protected void setSystemProperty(@NonNull String propertyName, @Nullable String propertyValue)
    • supportsEventType

      public boolean supportsEventType(@NonNull org.springframework.core.ResolvableType eventType)
      Specified by:
      supportsEventType in interface org.springframework.context.event.GenericApplicationListener
    • supportsSourceType

      public boolean supportsSourceType(@Nullable Class<?> sourceType)
      Specified by:
      supportsSourceType in interface org.springframework.context.event.SmartApplicationListener