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 Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getOrder()
protected boolean
isSystemPropertyNotSet
(String propertyName) protected boolean
isSystemPropertySet
(String propertyName) protected void
onApplicationEnvironmentPreparedEvent
(org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent environmentPreparedEvent) void
onApplicationEvent
(org.springframework.context.ApplicationEvent event) protected void
setSystemProperty
(String propertyName, String propertyValue) boolean
supportsEventType
(org.springframework.core.ResolvableType eventType) boolean
supportsSourceType
(Class<?> sourceType) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.context.event.GenericApplicationListener
supportsEventType
Methods inherited from interface org.springframework.context.event.SmartApplicationListener
getListenerId
-
Field Details
-
SPRING_BOOT_DATA_GEMFIRE_LOG_LEVEL_PROPERTY
- See Also:
-
SPRING_DATA_GEMFIRE_CACHE_LOG_LEVEL
- See Also:
-
SPRING_DATA_GEMFIRE_LOGGING_LOG_LEVEL
- See Also:
-
-
Constructor Details
-
GeodeLoggingApplicationListener
public GeodeLoggingApplicationListener()
-
-
Method Details
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
- Specified by:
getOrder
in interfaceorg.springframework.context.event.SmartApplicationListener
-
onApplicationEvent
public void onApplicationEvent(@Nullable org.springframework.context.ApplicationEvent event) - Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
-
onApplicationEnvironmentPreparedEvent
protected void onApplicationEnvironmentPreparedEvent(@NonNull org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent environmentPreparedEvent) -
isSystemPropertySet
-
isSystemPropertyNotSet
-
setSystemProperty
-
supportsEventType
public boolean supportsEventType(@NonNull org.springframework.core.ResolvableType eventType) - Specified by:
supportsEventType
in interfaceorg.springframework.context.event.GenericApplicationListener
-
supportsSourceType
- Specified by:
supportsSourceType
in interfaceorg.springframework.context.event.SmartApplicationListener
-