public final class BridgePatternConverter extends PatternConverter
Modifier and Type | Field and Description |
---|---|
private boolean |
handlesExceptions
Does pattern process exceptions.
|
private LoggingEventPatternConverter[] |
patternConverters
Pattern converters.
|
private FormattingInfo[] |
patternFields
Field widths and alignment corresponding to pattern converters.
|
next
Constructor and Description |
---|
BridgePatternConverter(String pattern)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected String |
convert(LoggingEvent event)
Derived pattern converters must override this method in order to
convert conversion specifiers in the correct way.
|
void |
format(StringBuffer sbuf,
LoggingEvent e)
Format event to string buffer.
|
boolean |
ignoresThrowable()
Will return false if any of the conversion specifiers in the pattern
handles
Exceptions . |
spacePad
private LoggingEventPatternConverter[] patternConverters
private FormattingInfo[] patternFields
private boolean handlesExceptions
public BridgePatternConverter(String pattern)
pattern
- pattern, may not be null.protected String convert(LoggingEvent event)
convert
in class PatternConverter
public void format(StringBuffer sbuf, LoggingEvent e)
format
in class PatternConverter
sbuf
- string buffer to receive formatted event, may not be null.e
- event to format, may not be null.public boolean ignoresThrowable()
Exceptions
.WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses