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 abstract void |
AppenderSkeleton.append(LoggingEvent event) |
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. |
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(String message,
Exception e,
int errorCode,
LoggingEvent event) |
String |
SimpleLayout.format(LoggingEvent theEvent)
Implement this method to create your own layout format.
|
abstract String |
Layout.format(LoggingEvent event)
Implement this method to create your own layout format.
|
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 | 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) |
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 |
RewritePolicy.rewrite(LoggingEvent source)
Rewrite a logging event.
|
LoggingEvent |
MapRewritePolicy.rewrite(LoggingEvent source)
Rewrite a logging event.
|
LoggingEvent |
PropertyRewritePolicy.rewrite(LoggingEvent source)
Rewrite a logging event.
|
Modifier and Type | Method and Description |
---|---|
LoggingEvent |
RewritePolicy.rewrite(LoggingEvent source)
Rewrite a logging event.
|
LoggingEvent |
MapRewritePolicy.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(String message,
Exception e,
int errorCode,
LoggingEvent event)
This method is invoked to handle the error.
|
Copyright © 1999-1969 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.