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.String
getContentType()
Deprecated.Returns the content type as appropriate for the implementation.Context
getContext()
Deprecated.java.lang.String
getFileFooter()
Deprecated.Return the file footer for this layout.java.lang.String
getFileHeader()
Deprecated.Return the file header for this layout.java.lang.String
getPresentationFooter()
Deprecated.Return the footer of the logging event formatting.java.lang.String
getPresentationHeader()
Deprecated.Return the header of the logging event formatting.boolean
isStarted()
Deprecated.void
setContext(Context context)
Deprecated.void
setFileFooter(java.lang.String footer)
Deprecated.void
setFileHeader(java.lang.String header)
Deprecated.void
setPresentationFooter(java.lang.String footer)
Deprecated.void
setPresentationHeader(java.lang.String header)
Deprecated.void
start()
Deprecated.void
stop()
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:
setContext
in interfaceContextAware
- Overrides:
setContext
in classContextAwareBase
-
getContext
public Context getContext()
Deprecated.- Specified by:
getContext
in interfaceContextAware
- Overrides:
getContext
in classContextAwareBase
-
getFileHeader
public java.lang.String getFileHeader()
Deprecated.Description copied from interface:Layout
Return the file header for this layout. The returned value may be null.- Specified by:
getFileHeader
in interfaceLayout<E>
- Returns:
- The header.
-
getPresentationHeader
public java.lang.String getPresentationHeader()
Deprecated.Description copied from interface:Layout
Return the header of the logging event formatting. The returned value may be null.- Specified by:
getPresentationHeader
in interfaceLayout<E>
- Returns:
- The header.
-
getPresentationFooter
public java.lang.String getPresentationFooter()
Deprecated.Description copied from interface:Layout
Return the footer of the logging event formatting. The returned value may be null.- Specified by:
getPresentationFooter
in interfaceLayout<E>
- Returns:
- The footer.
-
getFileFooter
public java.lang.String getFileFooter()
Deprecated.Description copied from interface:Layout
Return the file footer for this layout. The returned value may be null.- Specified by:
getFileFooter
in interfaceLayout<E>
- Returns:
- The footer.
-
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<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.
-
-