Module datarush.library
Class Log4jPatternParser
- java.lang.Object
-
- com.pervasive.datarush.operators.io.textfile.Log4jPatternParser
-
public final class Log4jPatternParser extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
CLASS
static String
FILE
static String
LEVEL
static String
LINE
static String
LOGGER
static String
MESSAGE
static String
METHOD
static String
NDC
static Map<String,String>
PATTERN_LAYOUT_RULES
static String
THREAD
static String
TIMESTAMP
-
Constructor Summary
Constructors Constructor Description Log4jPatternParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
parse(String pattern, List<String> tokens, Map<String,String> rules)
Parse a log4j format specifier string.
-
-
-
Field Detail
-
LOGGER
public static final String LOGGER
- See Also:
- Constant Field Values
-
MESSAGE
public static final String MESSAGE
- See Also:
- Constant Field Values
-
TIMESTAMP
public static final String TIMESTAMP
- See Also:
- Constant Field Values
-
NDC
public static final String NDC
- See Also:
- Constant Field Values
-
LEVEL
public static final String LEVEL
- See Also:
- Constant Field Values
-
THREAD
public static final String THREAD
- See Also:
- Constant Field Values
-
CLASS
public static final String CLASS
- See Also:
- Constant Field Values
-
FILE
public static final String FILE
- See Also:
- Constant Field Values
-
LINE
public static final String LINE
- See Also:
- Constant Field Values
-
METHOD
public static final String METHOD
- See Also:
- Constant Field Values
-
-
Method Detail
-
parse
public static void parse(String pattern, List<String> tokens, Map<String,String> rules) throws ParseException
Parse a log4j format specifier string.- Parameters:
pattern
- pattern to parse.tokens
- list to receive String tokensrules
- map of stock pattern tokens keyed by format specifier.- Throws:
ParseException
-
-