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
-
Field Summary
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the content type as appropriate for the implementation.Return the file footer for this layout.Return the file header for this layout.Return the footer of the logging event formatting.Return the header of the logging event formatting.boolean
void
setContext
(Context context) void
setFileFooter
(String footer) void
setFileHeader
(String header) void
setPresentationFooter
(String footer) void
setPresentationHeader
(String header) void
start()
void
stop()
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getDeclaredOrigin, getStatusManager
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
started
-
-
Constructor Details
-
LayoutBase
public LayoutBase()
-
-
Method Details
-
setContext
- Specified by:
setContext
in interfaceContextAware
- Overrides:
setContext
in classContextAwareBase
-
getContext
- Specified by:
getContext
in interfaceContextAware
- Overrides:
getContext
in classContextAwareBase
-
start
-
stop
-
isStarted
-
getFileHeader
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
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
Description copied from interface:Layout
Returns the content type as appropriate for the implementation.- Specified by:
getContentType
in interfaceLayout<E>
- Returns:
-
setFileHeader
-
setPresentationHeader
-