public class ConfluenceLoggingConfigurationListener extends Object implements org.springframework.context.ApplicationListener
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.
Constructor and Description |
---|
ConfluenceLoggingConfigurationListener() |
Modifier and Type | Method and Description |
---|---|
String |
getAppenderName() |
String |
getLogFileName() |
void |
onApplicationEvent(org.springframework.context.ApplicationEvent applicationEvent) |
void |
setAppenderName(String name) |
void |
setLogFileName(String file)
Configuration to be passed to the ConfluenceHomeLogAppender when it switches to file logging.
|
public ConfluenceLoggingConfigurationListener()
public void setLogFileName(String file)
file
- just the log file name (not the full path)public String getLogFileName()
public void setAppenderName(String name)
name
- the name of the ConfluenceLoggingConfigurationListener in the log4j configuration.public String getAppenderName()
public void onApplicationEvent(org.springframework.context.ApplicationEvent applicationEvent)
onApplicationEvent
in interface org.springframework.context.ApplicationListener
Copyright © 2003–2021 Atlassian. All rights reserved.