Package org.apache.log.output.lf5
Class LF5LogTarget
java.lang.Object
org.apache.log.output.lf5.LF5LogTarget
- All Implemented Interfaces:
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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreateLogFactorLogTarget
on the defaultLogBrokerMonitor
.LF5LogTarget
(org.apache.log4j.lf5.viewer.LogBrokerMonitor monitor) Create aLogFactorLogTarget
on a givenLogBrokerMonitor
. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.log4j.lf5.viewer.LogBrokerMonitor
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 Details
-
c_defaultLogMonitor
private static org.apache.log4j.lf5.viewer.LogBrokerMonitor c_defaultLogMonitorCommon monitor -
c_defaultContextFormatter
Default context map formatter -
m_monitor
private org.apache.log4j.lf5.viewer.LogBrokerMonitor m_monitorMonitor for this LogTarget -
m_contextFormatter
Format for context maps
-
-
Constructor Details
-
LF5LogTarget
public LF5LogTarget(org.apache.log4j.lf5.viewer.LogBrokerMonitor monitor) Create aLogFactorLogTarget
on a givenLogBrokerMonitor
.- Parameters:
monitor
- the monitor
-
LF5LogTarget
public LF5LogTarget()CreateLogFactorLogTarget
on the defaultLogBrokerMonitor
.
-
-
Method Details
-
setNDCFormatter
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
Process a log event.- Specified by:
processEvent
in interfaceLogTarget
- Parameters:
event
- the log event
-