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.
|
org.apache.log4j.varia |
Modifier and Type | Method and Description |
---|---|
void |
VectorAppender.append(LoggingEvent event)
This method is called by the
AppenderSkeleton.doAppend(org.apache.log4j.spi.LoggingEvent) method. |
void |
WriterAppender.append(LoggingEvent event)
This method is called by the
AppenderSkeleton.doAppend(org.apache.log4j.spi.LoggingEvent)
method. |
void |
ConsoleAppender.append(LoggingEvent theEvent)
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)
Call the appenders in the hierrachy starting at
this . |
void |
Appender.doAppend(LoggingEvent event)
Log in
Appender specific way. |
void |
AppenderSkeleton.doAppend(LoggingEvent event) |
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.
|
String |
PatternLayout.format(LoggingEvent event)
Produces a formatted string as specified by the conversion pattern.
|
abstract String |
Layout.format(LoggingEvent event)
Implement this method to create your own layout format.
|
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.
|
protected void |
RollingFileAppender.subAppend(LoggingEvent event)
This method differentiates RollingFileAppender from its super class.
|
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 |
---|---|
LoggingEvent |
CyclicBuffer.get()
Gets the oldest (first) element in the buffer.
|
LoggingEvent |
BoundedFIFO.get()
Gets the first element in the buffer.
|
LoggingEvent |
CyclicBuffer.get(int i)
Gets the ith oldest event currently in the buffer.
|
Modifier and Type | Method and Description |
---|---|
void |
CyclicBuffer.add(LoggingEvent event)
Adds an
event as the last event in the buffer. |
int |
AppenderAttachableImpl.appendLoopOnAppenders(LoggingEvent event)
Calls the
doAppend method on all attached appenders. |
protected abstract String |
PatternConverter.convert(LoggingEvent event)
Derived pattern converters must override this method in order to
convert conversion specifiers in the correct way.
|
void |
DateLayout.dateFormat(StringBuffer buf,
LoggingEvent event) |
void |
PatternConverter.format(StringBuffer sbuf,
LoggingEvent e)
A template method for formatting in a converter specific way.
|
void |
BoundedFIFO.put(LoggingEvent o)
Puts a
LoggingEvent in the buffer. |
Modifier and Type | Method and Description |
---|---|
LoggingEvent |
PropertyRewritePolicy.rewrite(LoggingEvent source)
Rewrite a logging event.
|
LoggingEvent |
MapRewritePolicy.rewrite(LoggingEvent source)
Rewrite a logging event.
|
LoggingEvent |
RewritePolicy.rewrite(LoggingEvent source)
Rewrite a logging event.
|
Modifier and Type | Method and Description |
---|---|
LoggingEvent |
PropertyRewritePolicy.rewrite(LoggingEvent source)
Rewrite a logging event.
|
LoggingEvent |
MapRewritePolicy.rewrite(LoggingEvent source)
Rewrite a logging event.
|
LoggingEvent |
RewritePolicy.rewrite(LoggingEvent source)
Rewrite a logging event.
|
Modifier and Type | Method and Description |
---|---|
void |
NOPLogger.callAppenders(LoggingEvent event)
Call the appenders in the hierrachy starting at
this . |
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.
|
boolean |
TriggeringEventEvaluator.isTriggeringEvent(LoggingEvent event)
Tests if this the triggering event.
|
Modifier and Type | Method and Description |
---|---|
protected void |
NullAppender.append(LoggingEvent event)
Does not do anything.
|
int |
LevelMatchFilter.decide(LoggingEvent event)
Return the decision of this filter.
|
int |
LevelRangeFilter.decide(LoggingEvent event)
Return the decision of this filter.
|
int |
DenyAllFilter.decide(LoggingEvent event)
Always returns the integer constant
Filter.DENY regardless of the LoggingEvent parameter. |
int |
StringMatchFilter.decide(LoggingEvent event)
Returns
Filter.NEUTRAL is there is no string match. |
void |
NullAppender.doAppend(LoggingEvent event)
Does not do anything.
|
void |
FallbackErrorHandler.error(String message,
Exception e,
int errorCode,
LoggingEvent event)
Prints the message and the stack trace of the exception on
System.err . |
Copyright © 1999-2023 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.