public class

ConfluenceLoggingConfigurationListener

extends Object
implements ApplicationListener
java.lang.Object
   ↳ com.atlassian.confluence.logging.ConfluenceLoggingConfigurationListener

Class Overview

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.

Summary

Public Constructors
ConfluenceLoggingConfigurationListener()
Public Methods
String getAppenderName()
String getLogFileName()
void onApplicationEvent(ApplicationEvent applicationEvent)
void setAppenderName(String name)
void setLogFileName(String file)
Configuration to be passed to the ConfluenceHomeLogAppender when it switches to file logging.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.context.ApplicationListener

Public Constructors

public ConfluenceLoggingConfigurationListener ()

Public Methods

public String getAppenderName ()

public String getLogFileName ()

public void onApplicationEvent (ApplicationEvent applicationEvent)

public void setAppenderName (String name)

Parameters
name the name of the ConfluenceLoggingConfigurationListener in the log4j configuration.

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)