Top Description Fields Constructors Methods
org.apache.log.output.lf5

public Class LF5LogTarget

extends Object
implements LogTarget
Class Inheritance
All Implemented Interfaces
org.apache.log.LogTarget
Imports
org.apache.log.LogEvent, .LogTarget, org.apache.log.format.Formatter, .PatternFormatter, org.apache.log4j.lf5.viewer.LogBrokerMonitor

A LogTarget that displays log events using the LogFactor5 Swing GUI.
Author
Sylvain Wallez
Version
$Id: LF5LogTarget.java 506267 2007-02-12 04:06:06Z crossley $

Field Summary

Modifier and TypeField 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 Summary

AccessConstructor and Description
public
LF5LogTarget(final LogBrokerMonitor
the monitor
monitor
)

Create a LogFactorLogTarget on a given LogBrokerMonitor.

public
LF5LogTarget()

Create LogFactorLogTarget on the default LogBrokerMonitor.

Method Summary

Modifier and TypeMethod and Description
public static synchronized LogBrokerMonitor

Returns:

the monitor
getDefaultMonitor
()

Get the default LogBrokerMonitor instance.

public void
processEvent(final LogEvent
the log event
event
)

Implements org.apache.log.LogTarget.processEvent.

Process a log event.
public void
setNDCFormatter(final Formatter
the message formatter
formatter
)

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

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

c_defaultContextFormatterback to summary
private static Formatter c_defaultContextFormatter

Default context map formatter

c_defaultLogMonitorback to summary
private static LogBrokerMonitor c_defaultLogMonitor

Common monitor

m_contextFormatterback to summary
private Formatter m_contextFormatter

Format for context maps

m_monitorback to summary
private LogBrokerMonitor m_monitor

Monitor for this LogTarget

Constructor Detail

LF5LogTargetback to summary
public LF5LogTarget(final LogBrokerMonitor monitor)

Create a LogFactorLogTarget on a given LogBrokerMonitor.

Parameters
monitor:LogBrokerMonitor

the monitor

LF5LogTargetback to summary
public LF5LogTarget()

Create LogFactorLogTarget on the default LogBrokerMonitor.

Method Detail

getDefaultMonitorback to summary
public static synchronized LogBrokerMonitor getDefaultMonitor()

Get the default LogBrokerMonitor instance.

Returns:LogBrokerMonitor

the monitor

processEventback to summary
public void processEvent(final LogEvent event)

Implements org.apache.log.LogTarget.processEvent.

Process a log event.

Parameters
event:LogEvent

the log event

setNDCFormatterback to summary
public void setNDCFormatter(final Formatter formatter)

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

Parameters
formatter:Formatter

the message formatter