public class ThreadIdAppender
extends org.apache.log4j.AppenderSkeleton
Normally it is simpler to use the custom PatternLayout but that
will not work correctly for async logging with AsyncAppender, in which case
this appender needs to be attached on top of AsyncAppender to display
the thread ID in logs.
| Constructor and Description |
|---|
ThreadIdAppender() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
append(org.apache.log4j.spi.LoggingEvent event) |
void |
close() |
boolean |
requiresLayout() |
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.