|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.logAnalyzer.patternParser.PatternParser
This class parses a log4j PatternLayout pattern.
The pattern could contain log4j basic converters, but also custom converters.
Each pattern is declared in the <logana:converters> section
of the configuration file loaded by
ConfigurationManager
.
Field Summary | |
protected static char |
CLOSED_BRAKET
|
protected static char |
CONVERTER_PREFIX
|
protected static char |
OPENED_BRAKET
|
Constructor Summary | |
PatternParser(java.lang.String pattern)
Default constructor. |
Method Summary | |
int |
getLinesToRead()
Returns the number of lines to read from the log file to parse a log messageLabel. |
LAConverter[] |
parse()
Parses the pattern char by char. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final char CONVERTER_PREFIX
protected static final char OPENED_BRAKET
protected static final char CLOSED_BRAKET
Constructor Detail |
public PatternParser(java.lang.String pattern)
pattern
- Pattern to analysis.Method Detail |
public LAConverter[] parse() throws PatternParsingException
PatternParsingException
public int getLinesToRead()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |