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 -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the content type as appropriate for the implementation.Deprecated.Deprecated.Return the file footer for this layout.Deprecated.Return the file header for this layout.Deprecated.Return the footer of the logging event formatting.Deprecated.Return the header of the logging event formatting.boolean
Deprecated.void
setContext
(Context context) Deprecated.void
setFileFooter
(String footer) Deprecated.void
setFileHeader
(String header) Deprecated.void
setPresentationFooter
(String footer) Deprecated.void
setPresentationHeader
(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
-
Constructor Details
-
LayoutBase
public LayoutBase()Deprecated.
-
-
Method Details
-
setContext
Deprecated.- Specified by:
setContext
in interfaceContextAware
- Overrides:
setContext
in classContextAwareBase
-
getContext
Deprecated.- Specified by:
getContext
in interfaceContextAware
- Overrides:
getContext
in classContextAwareBase
-
start
public void start()Deprecated. -
stop
public void stop()Deprecated. -
isStarted
public boolean isStarted()Deprecated. -
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
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.
-
getContentType
Deprecated.Description copied from interface:Layout
Returns the content type as appropriate for the implementation.- Specified by:
getContentType
in interfaceLayout<E>
- Returns:
-
setFileHeader
Deprecated. -
setPresentationHeader
Deprecated.
-