com.atlassian.confluence.admin.actions
Class TestAppender

java.lang.Object
  extended by org.apache.log4j.AppenderSkeleton
      extended by org.apache.log4j.WriterAppender
          extended by com.atlassian.confluence.admin.actions.TestAppender
All Implemented Interfaces:
org.apache.log4j.Appender, org.apache.log4j.spi.OptionHandler

public class TestAppender
extends org.apache.log4j.WriterAppender


Field Summary
 
Fields inherited from class org.apache.log4j.WriterAppender
encoding, immediateFlush, qw
 
Fields inherited from class org.apache.log4j.AppenderSkeleton
closed, errorHandler, headFilter, layout, name, tailFilter, threshold
 
Constructor Summary
TestAppender()
           
 
Method Summary
 void append(org.apache.log4j.spi.LoggingEvent loggingEvent)
           
 void disableLogger(java.lang.String className)
           
 void enableLogger(java.lang.String className)
           
 java.lang.String getLeastRecentMessageForLogger(java.lang.String loggerName)
          Gets the first unread message for the given loggerName.
 
Methods inherited from class org.apache.log4j.WriterAppender
activateOptions, checkEntryConditions, close, closeWriter, createWriter, getEncoding, getImmediateFlush, requiresLayout, reset, setEncoding, setErrorHandler, setImmediateFlush, setWriter, subAppend, writeFooter, writeHeader
 
Methods inherited from class org.apache.log4j.AppenderSkeleton
addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setLayout, setName, setThreshold
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestAppender

public TestAppender()
Method Detail

enableLogger

public void enableLogger(java.lang.String className)

disableLogger

public void disableLogger(java.lang.String className)

append

public void append(org.apache.log4j.spi.LoggingEvent loggingEvent)
Overrides:
append in class org.apache.log4j.WriterAppender

getLeastRecentMessageForLogger

public java.lang.String getLeastRecentMessageForLogger(java.lang.String loggerName)
Gets the first unread message for the given loggerName. Returns null if no messages have been recorded against the specified logger since the last read.

Parameters:
loggerName - logger to read message from
Returns:
the first unread message, or null if no new messages


Copyright © 2003-2014 Atlassian. All Rights Reserved.