Spring Boot for VMware GemFire
Class EnvironmentLoggingApplicationListener
java.lang.Object
org.springframework.geode.context.logging.EnvironmentLoggingApplicationListener
- All Implemented Interfaces:
EventListener,org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
public class EnvironmentLoggingApplicationListener
extends Object
implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
Spring
ApplicationListener used to log the state of the Spring Environment
on the ContextRefreshedEvent.- Since:
- 1.4.0
- See Also:
-
LoggerLoggerFactoryApplicationListenerContextRefreshedEventEnvironmentPropertySource
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classprotected classprotected class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Function<org.springframework.core.env.PropertySource<?>,org.springframework.core.env.PropertySource<?>> Returns a CompositeFunctioncapable of introspecting and logging properties from specifically typedPropertySources.protected org.slf4j.LoggerGets a reference to the configured SLF4JLogger.protected voidvoidonApplicationEvent(org.springframework.context.event.ContextRefreshedEvent contextRefreshedEvent)
-
Field Details
-
SYSTEM_ERR_ENABLED_PROPERTY
- See Also:
-
-
Constructor Details
-
EnvironmentLoggingApplicationListener
public EnvironmentLoggingApplicationListener()
-
-
Method Details
-
onApplicationEvent
public void onApplicationEvent(@NonNull org.springframework.context.event.ContextRefreshedEvent contextRefreshedEvent) - Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
-
getCompositePropertySourceLoggingFunction
protected Function<org.springframework.core.env.PropertySource<?>,org.springframework.core.env.PropertySource<?>> getCompositePropertySourceLoggingFunction()Returns a CompositeFunctioncapable of introspecting and logging properties from specifically typedPropertySources. -
getLogger
@NonNull protected org.slf4j.Logger getLogger()Gets a reference to the configured SLF4JLogger.- Returns:
- a reference to the configured SLF4J
Logger. - See Also:
-
Logger
-
log
-