org.apache.log.output.lf5
public class LF5LogTarget extends java.lang.Object implements LogTarget
LogTarget
that displays log events using the
LogFactor5
Swing GUI.Constructor and Description |
---|
LF5LogTarget()
Create
LogFactorLogTarget on the default LogBrokerMonitor . |
LF5LogTarget(org.apache.log4j.lf5.viewer.LogBrokerMonitor monitor)
Create a
LogFactorLogTarget on a given LogBrokerMonitor . |
Modifier and Type | Method and Description |
---|---|
static org.apache.log4j.lf5.viewer.LogBrokerMonitor |
getDefaultMonitor()
Get the default
LogBrokerMonitor instance. |
void |
processEvent(LogEvent event)
Process a log event.
|
void |
setNDCFormatter(Formatter formatter)
Sets the
Formatter that will be used to produce the "NDC" (nested diagnostic
context) text on the GUI. |
public LF5LogTarget(org.apache.log4j.lf5.viewer.LogBrokerMonitor monitor)
LogFactorLogTarget
on a given LogBrokerMonitor
.monitor
- the monitorpublic LF5LogTarget()
LogFactorLogTarget
on the default LogBrokerMonitor
.public void setNDCFormatter(Formatter formatter)
Formatter
that will be used to produce the "NDC" (nested diagnostic
context) text on the GUI.formatter
- the message formatterpublic static org.apache.log4j.lf5.viewer.LogBrokerMonitor getDefaultMonitor()
LogBrokerMonitor
instance.public void processEvent(LogEvent event)
processEvent
in interface LogTarget
event
- the log event