public class XMLLayout extends ch.qos.logback.core.LayoutBase<ILoggingEvent>
| Constructor and Description |
|---|
XMLLayout() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
doLayout(ILoggingEvent event)
Formats a
ILoggingEvent in conformity with the log4j.dtd. |
java.lang.String |
getContentType() |
boolean |
getLocationInfo()
Returns the current value of the LocationInfo option.
|
boolean |
getProperties()
Gets whether MDC key-value pairs should be output.
|
void |
setLocationInfo(boolean flag)
The LocationInfo option takes a boolean value.
|
void |
setProperties(boolean flag)
Sets whether MDC key-value pairs should be output, default false.
|
void |
start() |
getContext, getFileFooter, getFileHeader, getPresentationFooter, getPresentationHeader, isStarted, setContext, setFileFooter, setFileHeader, setPresentationFooter, setPresentationHeader, stopaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getDeclaredOrigin, getStatusManagerpublic void start()
start in interface ch.qos.logback.core.spi.LifeCyclestart in class ch.qos.logback.core.LayoutBase<ILoggingEvent>public void setLocationInfo(boolean flag)
If you are embedding this layout within an org.apache.log4j.net.SMTPAppender then make sure to set the
LocationInfo option of that appender as well.
public boolean getLocationInfo()
public void setProperties(boolean flag)
flag - new value.public boolean getProperties()
public java.lang.String doLayout(ILoggingEvent event)
ILoggingEvent in conformity with the log4j.dtd.public java.lang.String getContentType()
getContentType in interface ch.qos.logback.core.Layout<ILoggingEvent>getContentType in class ch.qos.logback.core.LayoutBase<ILoggingEvent>