LoggerTestUtil.Log4JLogCapture
@Deprecated
public class CaptureAppender
extends org.apache.log4j.AppenderSkeleton
implements Closeable
Constructor and Description |
---|
CaptureAppender(org.apache.log4j.Logger logger)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
append(org.apache.log4j.spi.LoggingEvent loggingEvent)
Deprecated.
|
void |
close()
Deprecated.
|
List<LogEvent> |
getLogEvents()
Deprecated.
|
List<org.apache.log4j.spi.LoggingEvent> |
getLoggingEvents()
Deprecated.
As of Cavanaugh (7.4.x), replaced by
getLogEvents() |
boolean |
requiresLayout()
Deprecated.
|
public CaptureAppender(org.apache.log4j.Logger logger)
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in interface org.apache.log4j.Appender
public List<LogEvent> getLogEvents()
@Deprecated public List<org.apache.log4j.spi.LoggingEvent> getLoggingEvents()
getLogEvents()
public boolean requiresLayout()
requiresLayout
in interface org.apache.log4j.Appender
protected void append(org.apache.log4j.spi.LoggingEvent loggingEvent)
append
in class org.apache.log4j.AppenderSkeleton