org.apache.log.output.lf5
Class LF5LogTarget

java.lang.Object
  extended by org.apache.log.output.lf5.LF5LogTarget
All Implemented Interfaces:
LogTarget

public class LF5LogTarget
extends Object
implements LogTarget

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

Version:
CVS $Revision: 1.8 $ $Date: 2004/02/28 11:31:25 $
Author:
Sylvain Wallez

Field Summary
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 Summary
LF5LogTarget()
          Create LogFactorLogTarget on the default LogBrokerMonitor.
LF5LogTarget(org.apache.log4j.lf5.viewer.LogBrokerMonitor monitor)
          Create a LogFactorLogTarget on a given LogBrokerMonitor.
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

c_defaultLogMonitor

private static org.apache.log4j.lf5.viewer.LogBrokerMonitor c_defaultLogMonitor
Common monitor


c_defaultContextFormatter

private static Formatter c_defaultContextFormatter
Default context map formatter


m_monitor

private org.apache.log4j.lf5.viewer.LogBrokerMonitor m_monitor
Monitor for this LogTarget


m_contextFormatter

private Formatter m_contextFormatter
Format for context maps

Constructor Detail

LF5LogTarget

public LF5LogTarget(org.apache.log4j.lf5.viewer.LogBrokerMonitor monitor)
Create a LogFactorLogTarget on a given LogBrokerMonitor.

Parameters:
monitor - the monitor

LF5LogTarget

public LF5LogTarget()
Create LogFactorLogTarget on the default LogBrokerMonitor.

Method Detail

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

getDefaultMonitor

public static org.apache.log4j.lf5.viewer.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


Copyright © 2003-2004 The Apache Software Foundation. All Rights Reserved.