public class GeodeLoggingApplicationListener
extends java.lang.Object
implements org.springframework.context.event.GenericApplicationListener
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.Properties,
SpringApplication,
ApplicationEnvironmentPreparedEvent,
LoggingApplicationListener,
ApplicationContext,
ApplicationEvent,
GenericApplicationListener,
Ordered,
Environment| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SPRING_BOOT_DATA_GEMFIRE_LOG_LEVEL_PROPERTY |
static java.lang.String |
SPRING_DATA_GEMFIRE_CACHE_LOG_LEVEL |
static java.lang.String |
SPRING_DATA_GEMFIRE_LOGGING_LOG_LEVEL |
| Constructor and Description |
|---|
GeodeLoggingApplicationListener() |
| Modifier and Type | Method and Description |
|---|---|
int |
getOrder() |
protected boolean |
isSystemPropertyNotSet(java.lang.String propertyName) |
protected boolean |
isSystemPropertySet(java.lang.String propertyName) |
protected void |
onApplicationEnvironmentPreparedEvent(org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent environmentPreparedEvent) |
void |
onApplicationEvent(org.springframework.context.ApplicationEvent event) |
protected void |
setSystemProperty(java.lang.String propertyName,
java.lang.String propertyValue) |
boolean |
supportsEventType(org.springframework.core.ResolvableType eventType) |
boolean |
supportsSourceType(java.lang.Class<?> sourceType) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportsEventTypepublic static final java.lang.String SPRING_BOOT_DATA_GEMFIRE_LOG_LEVEL_PROPERTY
public static final java.lang.String SPRING_DATA_GEMFIRE_CACHE_LOG_LEVEL
public static final java.lang.String SPRING_DATA_GEMFIRE_LOGGING_LOG_LEVEL
public int getOrder()
getOrder in interface org.springframework.context.event.SmartApplicationListenergetOrder in interface org.springframework.core.Orderedpublic void onApplicationEvent(@Nullable
org.springframework.context.ApplicationEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>protected void onApplicationEnvironmentPreparedEvent(@NonNull
org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent environmentPreparedEvent)
protected boolean isSystemPropertySet(@Nullable
java.lang.String propertyName)
protected boolean isSystemPropertyNotSet(@Nullable
java.lang.String propertyName)
protected void setSystemProperty(@NonNull
java.lang.String propertyName,
@Nullable
java.lang.String propertyValue)
public boolean supportsEventType(@NonNull
org.springframework.core.ResolvableType eventType)
supportsEventType in interface org.springframework.context.event.GenericApplicationListenerpublic boolean supportsSourceType(@Nullable
java.lang.Class<?> sourceType)
supportsSourceType in interface org.springframework.context.event.SmartApplicationListener