Class CrowdLoggingConfigurationListener
java.lang.Object
com.atlassian.crowd.console.logging.CrowdLoggingConfigurationListener
- All Implemented Interfaces:
EventListener
,org.springframework.context.ApplicationListener
public class CrowdLoggingConfigurationListener
extends Object
implements org.springframework.context.ApplicationListener
If the CrowdHomeLogAppender has been configured, then this listener is responsible for configuring it to
redirect logging to the crowd home directory once the bootstrap context is initialised. If the
CrowdHomeLogAppender is not being used then this listener does nothing.
This listener is also responsible for passing any required configuration onto the CrowdHomeLogAppender since it will have been created by the log4j framework which limits how it could be configured.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onApplicationEvent
(org.springframework.context.ApplicationEvent applicationEvent) void
setCrowdHomeLogAppenderSwitcher
(CrowdHomeLogAppenderSwitcher crowdHomeLogAppenderSwitcher) void
setCrowdLoggingConfiguration
(CrowdLoggingConfiguration crowdLoggingConfiguration)
-
Constructor Details
-
CrowdLoggingConfigurationListener
public CrowdLoggingConfigurationListener()
-
-
Method Details
-
getCrowdLoggingConfiguration
-
setCrowdLoggingConfiguration
-
setCrowdHomeLogAppenderSwitcher
public void setCrowdHomeLogAppenderSwitcher(CrowdHomeLogAppenderSwitcher crowdHomeLogAppenderSwitcher) -
onApplicationEvent
public void onApplicationEvent(org.springframework.context.ApplicationEvent applicationEvent) - Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener
-