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 Details

    • CrowdLoggingConfigurationListener

      public CrowdLoggingConfigurationListener()
  • Method Details

    • getCrowdLoggingConfiguration

      public CrowdLoggingConfiguration getCrowdLoggingConfiguration()
    • setCrowdLoggingConfiguration

      public void setCrowdLoggingConfiguration(CrowdLoggingConfiguration crowdLoggingConfiguration)
    • setCrowdHomeLogAppenderSwitcher

      public void setCrowdHomeLogAppenderSwitcher(CrowdHomeLogAppenderSwitcher crowdHomeLogAppenderSwitcher)
    • onApplicationEvent

      public void onApplicationEvent(org.springframework.context.ApplicationEvent applicationEvent)
      Specified by:
      onApplicationEvent in interface org.springframework.context.ApplicationListener