|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.log4j.JUnitAppenderSingleton
Singleton that distributes
logging events
to all registered
logging listeners
.
Constructor Summary | |
protected |
JUnitAppenderSingleton()
Creates a new JUnitAppenderSingleton instance. |
Method Summary | |
static void |
addListener(AppenderListener listener)
Registers a TestListener. |
protected static void |
addLoggingEvent(org.apache.log4j.spi.LoggingEvent event)
Sends the event as formatted message to all
logging listeners . |
static java.util.LinkedList |
cloneListeners()
Clone the current list of listeners. |
protected static JUnitAppenderSingleton |
getInstance()
Return the instance of this class. |
static org.apache.log4j.Layout |
getLayout()
Get the value of layout. |
static void |
removeListener(AppenderListener listener)
Unregisters a TestListener. |
static void |
setLayout(org.apache.log4j.Layout v)
Set the value of layout. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected JUnitAppenderSingleton()
JUnitAppenderSingleton
instance.Method Detail |
protected static JUnitAppenderSingleton getInstance()
JUnitAppenderSingleton
valueprotected static void addLoggingEvent(org.apache.log4j.spi.LoggingEvent event)
formatted message
to all
logging listeners
.event
- a LoggingEvent
valuepublic static org.apache.log4j.Layout getLayout()
public static void setLayout(org.apache.log4j.Layout v)
v
- Value to assign to layout.public static void addListener(AppenderListener listener)
listener
- an AppenderListener
valuepublic static void removeListener(AppenderListener listener)
listener
- an AppenderListener
valuepublic static java.util.LinkedList cloneListeners()
LinkedList
value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |