public final class Log4jPatternParser extends Object
Modifier and Type | Field and 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 and Description |
---|
Log4jPatternParser() |
Modifier and Type | Method and Description |
---|---|
static void |
parse(String pattern,
List<String> tokens,
Map<String,String> rules)
Parse a log4j format specifier string.
|
public static final String LOGGER
public static final String MESSAGE
public static final String TIMESTAMP
public static final String NDC
public static final String LEVEL
public static final String THREAD
public static final String CLASS
public static final String FILE
public static final String LINE
public static final String METHOD
public static void parse(String pattern, List<String> tokens, Map<String,String> rules) throws ParseException
pattern
- pattern to parse.tokens
- list to receive String tokensrules
- map of stock pattern tokens keyed by format specifier.ParseException
Copyright © 2016 Actian Corporation. All rights reserved.