Package com.atlassian.confluence.logging
Class EventPublishingAppender
- java.lang.Object
-
- org.apache.log4j.AppenderSkeleton
-
- com.atlassian.confluence.logging.EventPublishingAppender
-
- All Implemented Interfaces:
org.apache.log4j.Appender,org.apache.log4j.spi.OptionHandler
public class EventPublishingAppender extends org.apache.log4j.AppenderSkeletonPublishes anErrorLoggedEventvia 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:
ErrorLoggedEvent
-
-
Constructor Summary
Constructors Constructor Description EventPublishingAppender()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidappend(org.apache.log4j.spi.LoggingEvent event)voidclose()booleanrequiresLayout()
-