Package org.apache.log.output.lf5
Class LF5LogTarget
- java.lang.Object
-
- org.apache.log.output.lf5.LF5LogTarget
-
- All Implemented Interfaces:
LogTarget
public class LF5LogTarget extends java.lang.Object implements LogTarget
ALogTarget
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
Fields Modifier and Type Field Description private static Formatter
c_defaultContextFormatter
Default context map formatterprivate static org.apache.log4j.lf5.viewer.LogBrokerMonitor
c_defaultLogMonitor
Common monitorprivate Formatter
m_contextFormatter
Format for context mapsprivate org.apache.log4j.lf5.viewer.LogBrokerMonitor
m_monitor
Monitor for this LogTarget
-
Constructor Summary
Constructors Constructor Description LF5LogTarget()
CreateLogFactorLogTarget
on the defaultLogBrokerMonitor
.LF5LogTarget(org.apache.log4j.lf5.viewer.LogBrokerMonitor monitor)
Create aLogFactorLogTarget
on a givenLogBrokerMonitor
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.apache.log4j.lf5.viewer.LogBrokerMonitor
getDefaultMonitor()
Get the defaultLogBrokerMonitor
instance.void
processEvent(LogEvent event)
Process a log event.void
setNDCFormatter(Formatter formatter)
Sets theFormatter
that will be used to produce the "NDC" (nested diagnostic context) text on the GUI.
-
-
-
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
-
-
Method Detail
-
setNDCFormatter
public void setNDCFormatter(Formatter formatter)
Sets theFormatter
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 defaultLogBrokerMonitor
instance.- Returns:
- the monitor
-
processEvent
public void processEvent(LogEvent event)
Process a log event.- Specified by:
processEvent
in interfaceLogTarget
- Parameters:
event
- the log event
-
-