PatternConverterEqualsIgnoreCaseReplacementConverter, EqualsReplacementConverterpublic abstract class EqualsBaseReplacementConverter extends LogEventPatternConverter
LOGGERCATEGORY| Modifier | Constructor | Description |
|---|---|---|
protected |
EqualsBaseReplacementConverter(String name,
String style,
List<PatternFormatter> formatters,
String testString,
String substitution,
PatternParser parser) |
Construct the converter.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected abstract boolean |
equals(String str,
StringBuilder buff,
int from,
int len) |
Returns true if the specified String equals the specified section of the specified StringBuilder.
|
void |
format(LogEvent event,
StringBuilder toAppendTo) |
Formats an event into a string buffer.
|
getName, getStyleClassformat, handlesThrowable, isVariableprotected EqualsBaseReplacementConverter(String name, String style, List<PatternFormatter> formatters, String testString, String substitution, PatternParser parser)
name - converter namestyle - converter styleformatters - The PatternFormatters to generate the text to manipulate.testString - The test string.substitution - The substitution string.parser - The PatternParser.public void format(LogEvent event, StringBuilder toAppendTo)
format in class LogEventPatternConverterevent - event to format, may not be null.toAppendTo - string buffer to which the formatted event will be appended. May not be null.protected abstract boolean equals(String str, StringBuilder buff, int from, int len)
str - the String to comparebuff - the StringBuilder to compare a section offrom - start index in the StringBuilderlen - length of the section in the StringBuilderCopyright © 1999-2018. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.