public class LF5LogTarget extends java.lang.Object implements LogTarget
LogTarget
that displays log events using the
LogFactor5
Swing GUI.Modifier and Type | Field and Description |
---|---|
private static Formatter |
c_defaultContextFormatter
Default context map formatter
|
private static LogBrokerMonitor |
c_defaultLogMonitor
Common monitor
|
private Formatter |
m_contextFormatter
Format for context maps
|
private LogBrokerMonitor |
m_monitor
Monitor for this LogTarget
|
Constructor and Description |
---|
LF5LogTarget()
Create
LogFactorLogTarget on the default LogBrokerMonitor . |
LF5LogTarget(LogBrokerMonitor monitor)
Create a
LogFactorLogTarget on a given LogBrokerMonitor . |
Modifier and Type | Method and Description |
---|---|
static 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 LogBrokerMonitor c_defaultLogMonitor
private static Formatter c_defaultContextFormatter
private LogBrokerMonitor m_monitor
private Formatter m_contextFormatter
public LF5LogTarget(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 LogBrokerMonitor getDefaultMonitor()
LogBrokerMonitor
instance.public void processEvent(LogEvent event)
processEvent
in interface LogTarget
event
- the log event