Package ch.qos.logback.core
Class LayoutBase<E>
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.LayoutBase<E>
-
- All Implemented Interfaces:
Layout<E>,ContextAware,LifeCycle
- Direct Known Subclasses:
EchoLayout,HTMLLayoutBase,PatternLayoutBase,TTLLLayout,XMLLayout
@Deprecated(since="2022-01-27") public abstract class LayoutBase<E> extends ContextAwareBase implements Layout<E>
Deprecated.
-
-
Constructor Summary
Constructors Constructor Description LayoutBase()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetContentType()Deprecated.Returns the content type as appropriate for the implementation.ContextgetContext()Deprecated.StringgetFileFooter()Deprecated.Return the file footer for this layout.StringgetFileHeader()Deprecated.Return the file header for this layout.StringgetPresentationFooter()Deprecated.Return the footer of the logging event formatting.StringgetPresentationHeader()Deprecated.Return the header of the logging event formatting.booleanisStarted()Deprecated.voidsetContext(Context context)Deprecated.voidsetFileFooter(String footer)Deprecated.voidsetFileHeader(String header)Deprecated.voidsetPresentationFooter(String footer)Deprecated.voidsetPresentationHeader(String header)Deprecated.voidstart()Deprecated.voidstop()Deprecated.-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getStatusManager
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
setContext
public void setContext(Context context)
Deprecated.- Specified by:
setContextin interfaceContextAware- Overrides:
setContextin classContextAwareBase
-
getContext
public Context getContext()
Deprecated.- Specified by:
getContextin interfaceContextAware- Overrides:
getContextin classContextAwareBase
-
getFileHeader
public String getFileHeader()
Deprecated.Description copied from interface:LayoutReturn the file header for this layout. The returned value may be null.- Specified by:
getFileHeaderin interfaceLayout<E>- Returns:
- The header.
-
getPresentationHeader
public String getPresentationHeader()
Deprecated.Description copied from interface:LayoutReturn the header of the logging event formatting. The returned value may be null.- Specified by:
getPresentationHeaderin interfaceLayout<E>- Returns:
- The header.
-
getPresentationFooter
public String getPresentationFooter()
Deprecated.Description copied from interface:LayoutReturn the footer of the logging event formatting. The returned value may be null.- Specified by:
getPresentationFooterin interfaceLayout<E>- Returns:
- The footer.
-
getFileFooter
public String getFileFooter()
Deprecated.Description copied from interface:LayoutReturn the file footer for this layout. The returned value may be null.- Specified by:
getFileFooterin interfaceLayout<E>- Returns:
- The footer.
-
getContentType
public String getContentType()
Deprecated.Description copied from interface:LayoutReturns the content type as appropriate for the implementation.- Specified by:
getContentTypein interfaceLayout<E>- Returns:
-
setFileHeader
public void setFileHeader(String header)
Deprecated.
-
setFileFooter
public void setFileFooter(String footer)
Deprecated.
-
setPresentationHeader
public void setPresentationHeader(String header)
Deprecated.
-
setPresentationFooter
public void setPresentationFooter(String footer)
Deprecated.
-
-