A flexible layout configurable with pattern string. The goal of this class is
to format a ILoggingEvent and return the results in a
{#link String}. The format of the result depends on the conversion
pattern.
For more information about this layout, please refer to the online manual at http://logback.qos.ch/manual/layouts.html#PatternLayout
| Modifier and Type | Field and Description |
|---|---|
| public static final Map | |
| public static final Map | |
| public static final Map | defaultConverterMap
Deprecated
replaced by DEFAULT_CONVERTER_MAP
|
| public static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | doLayout(ILoggingEvent
The event to format event)Implements ch. |
| public Map | getDefaultConverterMap()
Implements abstract ch. |
| protected String |
| CONVERTER_CLASS_TO_KEY_MAP | back to summary |
|---|---|
| public static final Map<String, String> CONVERTER_CLASS_TO_KEY_MAP | |
| DEFAULT_CONVERTER_MAP | back to summary |
|---|---|
| public static final Map<String, String> DEFAULT_CONVERTER_MAP | |
| defaultConverterMap | back to summary |
|---|---|
| public static final Map<String, String> defaultConverterMap
Deprecated replaced by DEFAULT_CONVERTER_MAP | |
| HEADER_PREFIX | back to summary |
|---|---|
| public static final String HEADER_PREFIX | |
| PatternLayout | back to summary |
|---|---|
| public PatternLayout() | |
| doLayout | back to summary |
|---|---|
| public String doLayout(ILoggingEvent event) Implements ch. Doc from ch. Transform an event (of type Object) and return it as a String after appropriate formatting. Taking in an object and returning a String is the least sophisticated way of formatting events. However, it is remarkably CPU-effective.
| |
| getDefaultConverterMap | back to summary |
|---|---|
| public Map Implements abstract ch. Doc from ch. Concrete implementations of this class are responsible for elaborating the mapping between pattern words and converters. | |
| getPresentationHeaderPrefix | back to summary |
|---|---|
| protected String getPresentationHeaderPrefix() Overrides ch.
| |