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
FieldsFields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context -
Constructor Summary
Constructors -
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.booleanvoidsetContext(Context context) voidsetFileFooter(String footer) voidsetFileHeader(String header) voidsetPresentationFooter(String footer) voidsetPresentationHeader(String header) voidstart()voidstop()Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getDeclaredOrigin, getStatusManagerMethods 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:
setContextin interfaceContextAware- Overrides:
setContextin classContextAwareBase
-
getContext
- Specified by:
getContextin interfaceContextAware- Overrides:
getContextin classContextAwareBase
-
start
-
stop
-
isStarted
-
getFileHeader
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
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.
-
getContentType
Description copied from interface:LayoutReturns the content type as appropriate for the implementation.- Specified by:
getContentTypein interfaceLayout<E>- Returns:
-
setFileHeader
-
setPresentationHeader
-