Package | Description |
---|---|
org.apache.log4j |
Log4j 1.x compatibility layer.
|
org.apache.log4j.bridge | |
org.apache.log4j.helpers |
Log4j 1.x compatibility layer.
|
org.apache.log4j.rewrite | |
org.apache.log4j.spi |
Log4j 1.x compatibility layer.
|
Modifier and Type | Method and Description |
---|---|
protected void |
ConsoleAppender.append(LoggingEvent theEvent) |
void |
WriterAppender.append(LoggingEvent event)
This method is called by the
AppenderSkeleton.doAppend(org.apache.log4j.spi.LoggingEvent)
method. |
protected abstract void |
AppenderSkeleton.append(LoggingEvent event) |
void |
Category.callAppenders(LoggingEvent event)
No-op implementation.
|
void |
AppenderSkeleton.doAppend(LoggingEvent event)
This method is never going to be called in Log4j 2 so there isn't much point in having any code in it.
|
void |
Appender.doAppend(LoggingEvent event)
Log in
Appender specific way. |
void |
AppenderSkeleton.NoOpErrorHandler.error(java.lang.String message,
java.lang.Exception e,
int errorCode,
LoggingEvent event) |
java.lang.String |
SimpleLayout.format(LoggingEvent theEvent)
Implement this method to create your own layout format.
|
abstract java.lang.String |
Layout.format(LoggingEvent event)
Implement this method to create your own layout format.
|
java.lang.String |
PatternLayout.format(LoggingEvent event) |
protected boolean |
WriterAppender.shouldFlush(LoggingEvent event)
Determines whether the writer should be flushed after
this event is written.
|
protected void |
WriterAppender.subAppend(LoggingEvent event)
Actual writing occurs here.
|
Modifier and Type | Class and Description |
---|---|
class |
LogEventAdapter
Converts a Log4j 2 LogEvent into the components needed by a Log4j 1.x LoggingEvent.
|
Modifier and Type | Field and Description |
---|---|
private LoggingEvent |
LogEventWrapper.event |
Modifier and Type | Method and Description |
---|---|
LoggingEvent |
RewritePolicyWrapper.rewrite(LoggingEvent source) |
Modifier and Type | Method and Description |
---|---|
int |
FilterWrapper.decide(LoggingEvent event)
This method is never called.
|
void |
AppenderWrapper.doAppend(LoggingEvent event) |
java.lang.String |
LayoutWrapper.format(LoggingEvent event) |
LoggingEvent |
RewritePolicyWrapper.rewrite(LoggingEvent source) |
Constructor and Description |
---|
LogEventWrapper(LoggingEvent event) |
Modifier and Type | Method and Description |
---|---|
int |
AppenderAttachableImpl.appendLoopOnAppenders(LoggingEvent event)
Call the
doAppend method on all attached appenders. |
Modifier and Type | Method and Description |
---|---|
LoggingEvent |
MapRewritePolicy.rewrite(LoggingEvent source)
Rewrite a logging event.
|
LoggingEvent |
RewritePolicy.rewrite(LoggingEvent source)
Rewrite a logging event.
|
LoggingEvent |
PropertyRewritePolicy.rewrite(LoggingEvent source)
Rewrite a logging event.
|
Modifier and Type | Method and Description |
---|---|
LoggingEvent |
MapRewritePolicy.rewrite(LoggingEvent source)
Rewrite a logging event.
|
LoggingEvent |
RewritePolicy.rewrite(LoggingEvent source)
Rewrite a logging event.
|
LoggingEvent |
PropertyRewritePolicy.rewrite(LoggingEvent source)
Rewrite a logging event.
|
Modifier and Type | Method and Description |
---|---|
abstract int |
Filter.decide(LoggingEvent event)
If the decision is
DENY , then the event will be
dropped. |
void |
ErrorHandler.error(java.lang.String message,
java.lang.Exception e,
int errorCode,
LoggingEvent event)
This method is invoked to handle the error.
|