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.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv CachingDateFormatter | |
| pack-priv static final char | |
| pack-priv ThrowableProxyConverter |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | doLayout(ILoggingEvent
The event to format event)Implements ch. |
| private void | |
| public void | start()
Overrides ch. Implements ch. |
| cachingDateFormatter | back to summary |
|---|---|
| pack-priv CachingDateFormatter cachingDateFormatter | |
| DOUBLE_QUOTE_CHAR | back to summary |
|---|---|
| pack-priv static final char DOUBLE_QUOTE_CHAR | |
| tpc | back to summary |
|---|---|
| pack-priv ThrowableProxyConverter tpc | |
| TTLLLayout | back to summary |
|---|---|
| public TTLLLayout() | |
| doLayout | back to summary |
|---|---|
| public String doLayout(ILoggingEvent event) Implements ch. Doc from ch. Transform 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.
| |
| kvp | back to summary |
|---|---|
| private void kvp(ILoggingEvent event, StringBuilder sb) | |
| start | back to summary |
|---|---|
| public void start() Overrides ch. Implements ch.
| |