org.apache.log.output.lf5

Class LF5LogTarget

Implemented Interfaces:
LogTarget

public class LF5LogTarget
extends java.lang.Object
implements LogTarget

A LogTarget that displays log events using the LogFactor5 Swing GUI.
Version:
CVS $Revision: 1.5 $ $Date: 2003/02/09 23:33:24 $
Author:
Sylvain Wallez

Constructor Summary

LF5LogTarget()
Create LogFactorLogTarget on the default LogBrokerMonitor.
LF5LogTarget(LogBrokerMonitor monitor)
Create a LogFactorLogTarget on a given LogBrokerMonitor.

Method Summary

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.

Constructor Details

LF5LogTarget

public LF5LogTarget()
Create LogFactorLogTarget on the default LogBrokerMonitor.

LF5LogTarget

public LF5LogTarget(LogBrokerMonitor monitor)
Create a LogFactorLogTarget on a given LogBrokerMonitor.
Parameters:
monitor - the monitor

Method Details

getDefaultMonitor

public static LogBrokerMonitor getDefaultMonitor()
Get the default LogBrokerMonitor instance.
Returns:
the monitor

processEvent

public void processEvent(LogEvent event)
Process a log event.
Specified by:
processEvent in interface LogTarget
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