Package ch.qos.logback.classic.layout
Class TTLLLayout
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.LayoutBase<ILoggingEvent>
-
- ch.qos.logback.classic.layout.TTLLLayout
-
- All Implemented Interfaces:
Layout<ILoggingEvent>,ContextAware,LifeCycle
@Deprecated(since="2022-01-27") public class TTLLLayout extends LayoutBase<ILoggingEvent>
Deprecated.This internal logback API is not supported by AEM as a Cloud Service.A layout with a fixed format. The output is equivalent to that produced byPatternLayoutwith the pattern:%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%nTTLLLayout has the advantage of faster load time whereas
PatternLayoutrequires roughly 40 milliseconds to load its parser classes. Note that the second run of PatternLayout will be much much faster (approx. 10 micro-seconds).Fixed format layouts such as TTLLLayout should be considered as an alternative to PatternLayout only if the extra 40 milliseconds at application start-up is considered significant.
- Since:
- 1.1.6
-
-
Constructor Summary
Constructors Constructor Description TTLLLayout()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.StringdoLayout(ILoggingEvent event)Deprecated.Transform an event (of type Object) and return it as a String after appropriate formatting.voidstart()Deprecated.-
Methods inherited from class ch.qos.logback.core.LayoutBase
getContentType, getContext, getFileFooter, getFileHeader, getPresentationFooter, getPresentationHeader, isStarted, setContext, setFileFooter, setFileHeader, setPresentationFooter, setPresentationHeader, stop
-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getStatusManager
-
-
-
-
Method Detail
-
start
public void start()
Deprecated.- Specified by:
startin interfaceLifeCycle- Overrides:
startin classLayoutBase<ILoggingEvent>
-
doLayout
public java.lang.String doLayout(ILoggingEvent event)
Deprecated.Description copied from interface:LayoutTransform an event (of type Object) and return it as a String after appropriate formatting.Taking in an object and returning a String is the least sophisticated way of formatting events. However, it is remarkably CPU-effective.
- Parameters:
event- The event to format- Returns:
- the event formatted as a String
-
-