public class LF5Appender extends AppenderSkeleton
LF5Appender
logs events to a swing based logging
console. The swing console supports turning categories on and off,
multiple detail level views, as well as full text searching and many
other capabilties.限定符和类型 | 字段和说明 |
---|---|
protected static LogBrokerMonitor |
_defaultLogMonitor |
protected static AppenderFinalizer |
_finalizer |
protected LogBrokerMonitor |
_logMonitor |
closed, errorHandler, headFilter, layout, name, tailFilter, threshold
构造器和说明 |
---|
LF5Appender()
Constructs a
LF5Appender using the default instance of
the LogBrokerMonitor . |
LF5Appender(LogBrokerMonitor monitor)
Constructs a
LF5Appender |
限定符和类型 | 方法和说明 |
---|---|
void |
append(LoggingEvent event)
Appends a
LoggingEvent record to the
LF5Appender . |
void |
close()
This method is an empty implementation of the close() method inherited
from the
Appender interface. |
boolean |
equals(LF5Appender compareTo)
The equals method compares two LF5Appenders and determines whether
they are equal.
|
protected static LogBrokerMonitor |
getDefaultInstance() |
protected static int |
getDefaultMonitorHeight() |
protected static int |
getDefaultMonitorWidth() |
LogBrokerMonitor |
getLogBrokerMonitor() |
protected static int |
getScreenHeight() |
protected static int |
getScreenWidth() |
static void |
main(java.lang.String[] args) |
boolean |
requiresLayout()
Returns a value that indicates whether this appender requires a
Layout . |
void |
setCallSystemExitOnClose(boolean callSystemExitOnClose)
This method is used to set the property that controls whether
the
LogBrokerMonitor is hidden or closed when a user
exits
the monitor. |
void |
setMaxNumberOfRecords(int maxNumberOfRecords) |
activateOptions, addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, setLayout, setName, setThreshold
protected LogBrokerMonitor _logMonitor
protected static LogBrokerMonitor _defaultLogMonitor
protected static AppenderFinalizer _finalizer
public LF5Appender()
LF5Appender
using the default instance of
the LogBrokerMonitor
. This constructor should LF5Appender(LogBrokerMonitor monitor)
constructor, unless you need to spawn additional log monitoring
windows.public LF5Appender(LogBrokerMonitor monitor)
LF5Appender using an instance of
a LogBrokerMonitor supplied by the user. This
constructor should only be used when you need to spawn
additional log monitoring windows.
monitor
- An instance of a LogBrokerMonitor
created by the user.
public void append(LoggingEvent event)
LoggingEvent
record to the
LF5Appender
.append
在类中 AppenderSkeleton
event
- The LoggingEvent
to be appended.public void close()
Appender
interface.public boolean requiresLayout()
Layout
. This method always returns false.
No layout is required for the LF5Appender
.public void setCallSystemExitOnClose(boolean callSystemExitOnClose)
LogBrokerMonitor
is hidden or closed when a user
exits
the monitor. By default, the LogBrokerMonitor
will hide
itself when the log window is exited, and the swing thread will
continue to run in the background. If this property is
set to true, the LogBrokerMonitor
will call System.exit(0)
and will shut down swing thread and the virtual machine.callSystemExitOnClose
- A boolean value indicating whether
to call System.exit(0) when closing the log window.public boolean equals(LF5Appender compareTo)
Appenders
will be considered equal
if, and only if, they both contain references to the same
LogBrokerMonitor
.compareTo
- A boolean value indicating whether
the two LF5Appenders are equal.public LogBrokerMonitor getLogBrokerMonitor()
public static void main(java.lang.String[] args)
public void setMaxNumberOfRecords(int maxNumberOfRecords)
protected static LogBrokerMonitor getDefaultInstance()
LogBrokerMonitor
.protected static int getScreenWidth()
Toolkit
protected static int getScreenHeight()
Toolkit
protected static int getDefaultMonitorWidth()
protected static int getDefaultMonitorHeight()