public class TestAppender
extends org.apache.log4j.WriterAppender
Constructor and Description |
---|
TestAppender() |
Modifier and Type | Method and Description |
---|---|
void |
append(org.apache.log4j.spi.LoggingEvent loggingEvent) |
void |
disableLogger(String className) |
void |
enableLogger(String className) |
String |
getLeastRecentMessageForLogger(String loggerName)
Gets the first unread message for the given loggerName.
|
activateOptions, checkEntryConditions, close, closeWriter, createWriter, getEncoding, getImmediateFlush, requiresLayout, reset, setEncoding, setErrorHandler, setImmediateFlush, setWriter, shouldFlush, subAppend, writeFooter, writeHeader
public void enableLogger(String className)
public void disableLogger(String className)
public void append(org.apache.log4j.spi.LoggingEvent loggingEvent)
append
in class org.apache.log4j.WriterAppender
public String getLeastRecentMessageForLogger(String loggerName)
loggerName
- logger to read message fromCopyright © 2003–2018 Atlassian. All rights reserved.