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
ConstructorsConstructorDescriptionCreateLogFactorLogTargeton the defaultLogBrokerMonitor.LF5LogTarget(org.apache.log4j.lf5.viewer.LogBrokerMonitor monitor) Create aLogFactorLogTargeton a givenLogBrokerMonitor. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.log4j.lf5.viewer.LogBrokerMonitorGet the defaultLogBrokerMonitorinstance.voidprocessEvent(LogEvent event) Process a log event.voidsetNDCFormatter(Formatter formatter) Sets theFormatterthat 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 aLogFactorLogTargeton a givenLogBrokerMonitor.- Parameters:
monitor- the monitor
-
LF5LogTarget
public LF5LogTarget()CreateLogFactorLogTargeton the defaultLogBrokerMonitor.
-
-
Method Details
-
setNDCFormatter
Sets theFormatterthat 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 defaultLogBrokerMonitorinstance.- Returns:
- the monitor
-
processEvent
Process a log event.- Specified by:
processEventin interfaceLogTarget- Parameters:
event- the log event
-