com.atlassian.confluence.logging
Class ConfluenceLoggingConfigurationListener
java.lang.Object
com.atlassian.confluence.logging.ConfluenceLoggingConfigurationListener
- All Implemented Interfaces:
- EventListener, org.springframework.context.ApplicationListener
public class ConfluenceLoggingConfigurationListener
- extends Object
- implements org.springframework.context.ApplicationListener
If the ConfluenceHomeLogAppender has been configured, then this listener is responsible for configuring it to
redirect logging to the confluence home directory once the bootstrap context is initialised. If the
ConfluenceHomeLogAppender is not being used then this listener does nothing.
This listener is also responsible for passing any required configuration onto the ConfluenceHomeLogAppender
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 |
ConfluenceLoggingConfigurationListener
public ConfluenceLoggingConfigurationListener()
setLogFileName
public void setLogFileName(String file)
- Configuration to be passed to the ConfluenceHomeLogAppender 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 ConfluenceLoggingConfigurationListener 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 © 2003-2010 Atlassian. All Rights Reserved.