org.rhq.core.pluginapi.event.log
Class Log4JLogEntryProcessor

java.lang.Object
  extended by org.rhq.core.pluginapi.event.log.MultiLineLogEntryProcessor
      extended by org.rhq.core.pluginapi.event.log.Log4JLogEntryProcessor
All Implemented Interfaces:
LogEntryProcessor

public class Log4JLogEntryProcessor
extends MultiLineLogEntryProcessor

A LogEntryProcessor for Log4J log files.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.rhq.core.pluginapi.event.log.MultiLineLogEntryProcessor
MultiLineLogEntryProcessor.LogEntry, MultiLineLogEntryProcessor.ParseException
 
Field Summary
 
Fields inherited from class org.rhq.core.pluginapi.event.log.MultiLineLogEntryProcessor
dateFormat, eventType, includesPattern, log, logFile, minimumSeverity
 
Constructor Summary
Log4JLogEntryProcessor(String eventType, File logFile)
           
 
Method Summary
protected  DateFormat getDefaultDateFormat()
           
protected  Pattern getPattern()
           
protected  Date parseDateString(String dateString)
           
protected  MultiLineLogEntryProcessor.LogEntry processPrimaryLine(Matcher matcher)
           
 
Methods inherited from class org.rhq.core.pluginapi.event.log.MultiLineLogEntryProcessor
processLine, processLines, setDateFormat, setDateIfNotSet, setIncludesPattern, setMinimumSeverity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Log4JLogEntryProcessor

public Log4JLogEntryProcessor(String eventType,
                              File logFile)
Method Detail

getPattern

protected Pattern getPattern()
Specified by:
getPattern in class MultiLineLogEntryProcessor

processPrimaryLine

protected MultiLineLogEntryProcessor.LogEntry processPrimaryLine(Matcher matcher)
                                                          throws MultiLineLogEntryProcessor.ParseException
Specified by:
processPrimaryLine in class MultiLineLogEntryProcessor
Throws:
MultiLineLogEntryProcessor.ParseException

getDefaultDateFormat

protected DateFormat getDefaultDateFormat()
Specified by:
getDefaultDateFormat in class MultiLineLogEntryProcessor

parseDateString

protected Date parseDateString(String dateString)
                        throws MultiLineLogEntryProcessor.ParseException
Overrides:
parseDateString in class MultiLineLogEntryProcessor
Throws:
MultiLineLogEntryProcessor.ParseException


Copyright © 2008-2009 RHQ Project Advisory Board (Red Hat, Inc.). All Rights Reserved.