Package 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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecution
-
Constructor Details
-
ConfluenceLoggingConfigurationListener
Deprecated.since 8.7
-
-
Method Details
-
setLogFileName
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
-
setAppenderName
- Parameters:
name
- the name of the ConfluenceLoggingConfigurationListener in the log4j configuration.
-
getAppenderName
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.ApplicationEvent applicationEvent) - Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener
-