public class PatternFormatter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private LogEventPatternConverter |
converter |
private FormattingInfo |
field |
private boolean |
skipFormattingInfo |
Constructor and Description |
---|
PatternFormatter(LogEventPatternConverter converter,
FormattingInfo field) |
Modifier and Type | Method and Description |
---|---|
void |
format(LogEvent event,
java.lang.StringBuilder buf) |
private void |
formatWithInfo(LogEvent event,
java.lang.StringBuilder buf) |
LogEventPatternConverter |
getConverter() |
FormattingInfo |
getFormattingInfo() |
boolean |
handlesThrowable()
Normally pattern formatters are not meant to handle Exceptions although few pattern formatters might.
|
boolean |
requiresLocation()
Most pattern formatters do not use location information.
|
java.lang.String |
toString()
Returns a String suitable for debugging.
|
private final LogEventPatternConverter converter
private final FormattingInfo field
private final boolean skipFormattingInfo
public PatternFormatter(LogEventPatternConverter converter, FormattingInfo field)
public void format(LogEvent event, java.lang.StringBuilder buf)
private void formatWithInfo(LogEvent event, java.lang.StringBuilder buf)
public LogEventPatternConverter getConverter()
public FormattingInfo getFormattingInfo()
public boolean handlesThrowable()
By examining the return values for this method, the containing layout will determine whether it handles throwables or not.
public boolean requiresLocation()
public java.lang.String toString()
toString
in class java.lang.Object