org.apache.log.output.lf5

Class LF5LogTarget

public class LF5LogTarget extends Object implements LogTarget

A LogTarget that displays log events using the LogFactor5 Swing GUI.

Version: $Id: LF5LogTarget.java 30977 2004-07-30 03:57:54 -0500 (Fri, 30 Jul 2004) niclas $

Author: Sylvain Wallez

Field Summary
static Formatterc_defaultContextFormatter
Default context map formatter
static LogBrokerMonitorc_defaultLogMonitor
Common monitor
Formatterm_contextFormatter
Format for context maps
LogBrokerMonitorm_monitor
Monitor for this LogTarget
Constructor Summary
LF5LogTarget(LogBrokerMonitor monitor)
Create a LogFactorLogTarget on a given LogBrokerMonitor.
LF5LogTarget()
Create LogFactorLogTarget on the default LogBrokerMonitor.
Method Summary
static LogBrokerMonitorgetDefaultMonitor()
Get the default LogBrokerMonitor instance.
voidprocessEvent(LogEvent event)
Process a log event.
voidsetNDCFormatter(Formatter formatter)
Sets the Formatter that will be used to produce the "NDC" (nested diagnostic context) text on the GUI.

Field Detail

c_defaultContextFormatter

private static Formatter c_defaultContextFormatter
Default context map formatter

c_defaultLogMonitor

private static LogBrokerMonitor c_defaultLogMonitor
Common monitor

m_contextFormatter

private Formatter m_contextFormatter
Format for context maps

m_monitor

private LogBrokerMonitor m_monitor
Monitor for this LogTarget

Constructor Detail

LF5LogTarget

public LF5LogTarget(LogBrokerMonitor monitor)
Create a LogFactorLogTarget on a given LogBrokerMonitor.

Parameters: monitor the monitor

LF5LogTarget

public LF5LogTarget()
Create LogFactorLogTarget on the default LogBrokerMonitor.

Method Detail

getDefaultMonitor

public static LogBrokerMonitor getDefaultMonitor()
Get the default LogBrokerMonitor instance.

Returns: the monitor

processEvent

public void processEvent(LogEvent event)
Process a log event.

Parameters: event the log event

setNDCFormatter

public void setNDCFormatter(Formatter formatter)
Sets the Formatter that will be used to produce the "NDC" (nested diagnostic context) text on the GUI.

Parameters: formatter the message formatter