LogTarget
public class LF5LogTarget extends java.lang.Object implements LogTarget
LogTarget
that displays log events using the
LogFactor5
Swing GUI.Modifier and Type | Field | Description |
---|---|---|
private static Formatter |
c_defaultContextFormatter |
Default context map formatter
|
private static org.apache.log4j.lf5.viewer.LogBrokerMonitor |
c_defaultLogMonitor |
Common monitor
|
private Formatter |
m_contextFormatter |
Format for context maps
|
private org.apache.log4j.lf5.viewer.LogBrokerMonitor |
m_monitor |
Monitor for this LogTarget
|
Constructor | 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 | 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. |
private static org.apache.log4j.lf5.viewer.LogBrokerMonitor c_defaultLogMonitor
private static Formatter c_defaultContextFormatter
private org.apache.log4j.lf5.viewer.LogBrokerMonitor m_monitor
private Formatter m_contextFormatter
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 eventCopyright © 2003-2004 The Apache Software Foundation. All Rights Reserved.