com.atlassian.crowd.console.logging
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CrowdLoggingConfigurationListener
public CrowdLoggingConfigurationListener()
setLogFileName
public void setLogFileName(String file)
- Configuration to be passed to the CrowdHomeLogAppender when it switches to file logging.
- Parameters:
file
- just the log file name (not the full path)
getLogFileName
public String getLogFileName()
setAppenderName
public void setAppenderName(String name)
- Parameters:
name
- the name of the CrowdLoggingConfigurationListener in the log4j configuration.
getAppenderName
public String getAppenderName()
onApplicationEvent
public void onApplicationEvent(org.springframework.context.ApplicationEvent applicationEvent)
- Specified by:
onApplicationEvent
in interface org.springframework.context.ApplicationListener
Copyright © 2013 Atlassian. All Rights Reserved.