|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.LayoutBase<ILoggingEvent>
ch.qos.logback.classic.log4j.XMLLayout
public class XMLLayout
Generates log4j.dtd compliant XML documents.
Field Summary |
---|
Fields inherited from class ch.qos.logback.core.LayoutBase |
---|
started |
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase |
---|
context |
Constructor Summary | |
---|---|
XMLLayout()
|
Method Summary | |
---|---|
String |
doLayout(ILoggingEvent event)
Formats a ILoggingEvent in conformity with the log4j.dtd. |
String |
getContentType()
Returns the content type as appropriate for the implementation. |
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()
|
Methods inherited from class ch.qos.logback.core.LayoutBase |
---|
getContext, getFileFooter, getFileHeader, getPresentationFooter, getPresentationHeader, isStarted, setContext, setFileFooter, setFileHeader, setPresentationFooter, setPresentationHeader, stop |
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase |
---|
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getDeclaredOrigin, getStatusManager |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface ch.qos.logback.core.spi.ContextAware |
---|
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn |
Constructor Detail |
---|
public XMLLayout()
Method Detail |
---|
public void start()
start
in interface LifeCycle
start
in class 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 String doLayout(ILoggingEvent event)
ILoggingEvent
in conformity with the log4j.dtd.
event
- The event to format
public String getContentType()
Layout
getContentType
in interface Layout<ILoggingEvent>
getContentType
in class LayoutBase<ILoggingEvent>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |