public class TTLLLayout extends LayoutBase<ILoggingEvent>
PatternLayout
with the pattern:
%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %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.
started
context
Constructor and Description |
---|
TTLLLayout() |
Modifier and Type | Method and Description |
---|---|
String |
doLayout(ILoggingEvent event) |
void |
start() |
getContentType, getContext, getFileFooter, getFileHeader, getPresentationFooter, getPresentationHeader, isStarted, setContext, setFileFooter, setFileHeader, setPresentationFooter, setPresentationHeader, stop
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getDeclaredOrigin, getStatusManager
public void start()
start
in interface LifeCycle
start
in class LayoutBase<ILoggingEvent>
public String doLayout(ILoggingEvent event)
Copyright © 2005–2021 QOS.ch. All rights reserved.