public class InMemoryLog4jAppender
extends org.apache.log4j.AppenderSkeleton
Constructor and Description |
---|
InMemoryLog4jAppender() |
Modifier and Type | Method and Description |
---|---|
protected void |
append(org.apache.log4j.spi.LoggingEvent event) |
void |
close() |
static void |
linesClear()
Removes all of the lines from this list (optional operation).
|
static Object |
linesGet(int index)
Returns the line at the specified position in this list.
|
static int |
linesSize()
Returns the number of lines in this list.
|
boolean |
requiresLayout() |
public static int linesSize()
public static void linesClear()
public static Object linesGet(int index) throws IndexOutOfBoundsException
index
- index of line to return.IndexOutOfBoundsException
- if the index is out of range (index < 0 || index >= size()).public void close()
public boolean requiresLayout()
protected void append(org.apache.log4j.spi.LoggingEvent event)
append
in class org.apache.log4j.AppenderSkeleton
Copyright © 2008–2014. All rights reserved.