public class

EventPublishingAppender

extends AppenderSkeleton
java.lang.Object
   ↳ org.apache.log4j.AppenderSkeleton
     ↳ com.atlassian.confluence.logging.EventPublishingAppender

Class Overview

Publishes an ErrorLoggedEvent via Atlassian-Events whenever a log message exceeds the configured threshold.

To configure, add the following lines to log4j.properties and add 'events' to your rootLogger list:
 log4j.appender.events=com.atlassian.confluence.logging.EventPublishingAppender
 log4j.appender.events.Threshold=ERROR
 
See Also

Summary

[Expand]
Inherited Fields
From class org.apache.log4j.AppenderSkeleton
Public Constructors
EventPublishingAppender()
Public Methods
void close()
boolean requiresLayout()
Protected Methods
void append(LoggingEvent event)
[Expand]
Inherited Methods
From class org.apache.log4j.AppenderSkeleton
From class java.lang.Object
From interface org.apache.log4j.Appender
From interface org.apache.log4j.spi.OptionHandler

Public Constructors

public EventPublishingAppender ()

Public Methods

public void close ()

public boolean requiresLayout ()

Protected Methods

protected void append (LoggingEvent event)