Package ch.qos.logback.classic.layout
Class TTLLLayout
- All Implemented Interfaces:
Layout<ILoggingEvent>
,ContextAware
,LifeCycle
A layout with a fixed format. The output is equivalent to that produced by
PatternLayout
with the pattern:
%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} -%kvp- %msg%n
TTLLLayout has the advantage of faster load time whereas
PatternLayout
requires 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
- Author:
- Ceki Gülcü
-
Field Summary
Fields inherited from class ch.qos.logback.core.LayoutBase
started
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
Constructor Summary
-
Method Summary
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, getDeclaredOrigin, getStatusManager
-
Constructor Details
-
TTLLLayout
public TTLLLayout()
-
-
Method Details
-
start
public void start()- Specified by:
start
in interfaceLifeCycle
- Overrides:
start
in classLayoutBase<ILoggingEvent>
-
doLayout
-