Package ch.qos.logback.classic.log4j
Class XMLLayout
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.LayoutBase<ILoggingEvent>
-
- ch.qos.logback.classic.log4j.XMLLayout
-
- All Implemented Interfaces:
Layout<ILoggingEvent>
,ContextAware
,LifeCycle
@Deprecated(since="2022-01-27") public class XMLLayout extends LayoutBase<ILoggingEvent>
Deprecated.This internal logback API is not supported by AEM as a Cloud Service.Generates log4j.dtd compliant XML documents.
-
-
Constructor Summary
Constructors Constructor Description XMLLayout()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
doLayout(ILoggingEvent event)
Deprecated.Formats aILoggingEvent
in conformity with the log4j.dtd.java.lang.String
getContentType()
Deprecated.Returns the content type as appropriate for the implementation.boolean
getLocationInfo()
Deprecated.Returns the current value of the LocationInfo option.boolean
getProperties()
Deprecated.Gets whether MDC key-value pairs should be output.void
setLocationInfo(boolean flag)
Deprecated.The LocationInfo option takes a boolean value.void
setProperties(boolean flag)
Deprecated.Sets whether MDC key-value pairs should be output, default false.void
start()
Deprecated.-
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, getStatusManager
-
-
-
-
Method Detail
-
start
public void start()
Deprecated.- Specified by:
start
in interfaceLifeCycle
- Overrides:
start
in classLayoutBase<ILoggingEvent>
-
setLocationInfo
public void setLocationInfo(boolean flag)
Deprecated.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 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
SMTPAppender
then make sure to set the LocationInfo option of that appender as well.
-
getLocationInfo
public boolean getLocationInfo()
Deprecated.Returns the current value of the LocationInfo option.
-
setProperties
public void setProperties(boolean flag)
Deprecated.Sets whether MDC key-value pairs should be output, default false.- Parameters:
flag
- new value.- Since:
- 1.2.15
-
getProperties
public boolean getProperties()
Deprecated.Gets whether MDC key-value pairs should be output.- Returns:
- true if MDC key-value pairs are output.
- Since:
- 1.2.15
-
doLayout
public java.lang.String doLayout(ILoggingEvent event)
Deprecated.Formats aILoggingEvent
in conformity with the log4j.dtd.- Parameters:
event
- The event to format- Returns:
- the event formatted as a String
-
getContentType
public java.lang.String getContentType()
Deprecated.Description copied from interface:Layout
Returns the content type as appropriate for the implementation.- Specified by:
getContentType
in interfaceLayout<ILoggingEvent>
- Overrides:
getContentType
in classLayoutBase<ILoggingEvent>
- Returns:
-
-