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 java.lang.StringgetContentType()Deprecated.Returns the content type as appropriate for the implementation.ContextgetContext()Deprecated.java.lang.StringgetFileFooter()Deprecated.Return the file footer for this layout.java.lang.StringgetFileHeader()Deprecated.Return the file header for this layout.java.lang.StringgetPresentationFooter()Deprecated.Return the footer of the logging event formatting.java.lang.StringgetPresentationHeader()Deprecated.Return the header of the logging event formatting.booleanisStarted()Deprecated.voidsetContext(Context context)Deprecated.voidsetFileFooter(java.lang.String footer)Deprecated.voidsetFileHeader(java.lang.String header)Deprecated.voidsetPresentationFooter(java.lang.String footer)Deprecated.voidsetPresentationHeader(java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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(java.lang.String header)
Deprecated.
-
setFileFooter
public void setFileFooter(java.lang.String footer)
Deprecated.
-
setPresentationHeader
public void setPresentationHeader(java.lang.String header)
Deprecated.
-
setPresentationFooter
public void setPresentationFooter(java.lang.String footer)
Deprecated.
-
-