public class Log4jBufferListener extends JAMonBufferListener
It will create details of the key details (Label (formattedMessage), LoggerName, Level, Threadname, Exception) followed by lastvalue, active, and the date of the invocation
JAMonBufferListener.HeaderInfo
Constructor and Description |
---|
Log4jBufferListener()
Constructor that creaates this object with its default name (the class
name)
|
Log4jBufferListener(String name)
Pass in the jamonListener name
|
Log4jBufferListener(String name,
BufferList list)
Name the listener and pass in the jamon BufferList to use
|
Modifier and Type | Method and Description |
---|---|
JAMonListener |
copy()
Makes a usable copy of this BufferListener
|
DetailData |
getDetailData() |
String[] |
getHeader()
Returns the valid header for display of this buffer
|
void |
processEvent(Monitor mon)
When this event is fired the monitor will be added to the rolling buffer.
|
protected Object[] |
toArray(org.apache.log4j.spi.LoggingEvent event,
Monitor mon)
method that returns an array to use in the Buffer.
|
addRow, addRow, getBufferList, getDefaultHeaderInfo, getHeaderInfo, getName, getRowCount, hasData, isEmpty, setName
public Log4jBufferListener()
public Log4jBufferListener(String name)
public Log4jBufferListener(String name, BufferList list)
public void processEvent(Monitor mon)
processEvent
in interface JAMonListener
processEvent
in class JAMonBufferListener
protected Object[] toArray(org.apache.log4j.spi.LoggingEvent event, Monitor mon)
event
- mon
- public JAMonListener copy()
copy
in interface CopyJAMonListener
copy
in class JAMonBufferListener
public String[] getHeader()
public DetailData getDetailData()
getDetailData
in class JAMonBufferListener
Copyright © 2015. All rights reserved.