| Modifier and Type | Field and Description |
|---|---|
| private StringBuilder | |
| private final int | |
| private boolean | |
| private boolean | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | doLayout(ILoggingEvent
The event to format event)Implements ch. ILoggingEvent in conformity with the log4j.dtd.
|
| public String | getContentType()
Overrides ch. Implements ch. |
| public boolean | |
| public boolean | Returns: true if MDC key-value pairs are output.Gets whether MDC key-value pairs should be output. |
| public void | |
| public void | setProperties(final boolean
new value. flag)Sets whether MDC key-value pairs should be output, default false. |
| public void | start()
Overrides ch. Implements ch. |
| buf | back to summary |
|---|---|
| private StringBuilder buf | |
| DEFAULT_SIZE | back to summary |
|---|---|
| private final int DEFAULT_SIZE | |
| locationInfo | back to summary |
|---|---|
| private boolean locationInfo | |
| properties | back to summary |
|---|---|
| private boolean properties | |
| UPPER_LIMIT | back to summary |
|---|---|
| private final int UPPER_LIMIT | |
| XMLLayout | back to summary |
|---|---|
| public XMLLayout() | |
| doLayout | back to summary |
|---|---|
| public String doLayout(ILoggingEvent event) Implements ch. Formats a
| |
| getContentType | back to summary |
|---|---|
| public String getContentType() Overrides ch. Implements ch. Doc from ch. Returns the content type as appropriate for the implementation.
| |
| getLocationInfo | back to summary |
|---|---|
| public boolean getLocationInfo() Returns the current value of the LocationInfo option. | |
| getProperties | back to summary |
|---|---|
| public boolean getProperties() Gets whether MDC key-value pairs should be output.
| |
| setLocationInfo | back to summary |
|---|---|
| public void setLocationInfo(boolean flag) The LocationInfo option takes a boolean value. By default, it is set to false which means there will be no location information output by this layout. If the option is set to true, then the file name and line number of the statement at the origin of the log statement will be output.
If you are embedding this layout within an
| |
| setProperties | back to summary |
|---|---|
| public void setProperties(final boolean flag) Sets whether MDC key-value pairs should be output, default false.
| |
| start | back to summary |
|---|---|
| public void start() Overrides ch. Implements ch.
| |