Package | Description |
---|---|
org.apache.log4j |
The main log4j package.
|
org.apache.log4j.helpers |
This package is used internally.
|
org.apache.log4j.jdbc | |
org.apache.log4j.net |
Package for remote logging.
|
org.apache.log4j.pattern |
Provides classes implementing format specifiers in conversion patterns.
|
org.apache.log4j.rewrite | |
org.apache.log4j.spi |
Contains part of the System Programming Interface (SPI) needed to
extend log4j.
|
org.apache.log4j.varia |
Contains various appenders, filters and other odds and ends.
|
org.apache.log4j.xml |
XML based components.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
AppenderSkeleton.append(LoggingEvent event)
Subclasses of
AppenderSkeleton should implement this method to perform actual logging. |
void |
AsyncAppender.append(LoggingEvent event)
Subclasses of
AppenderSkeleton should implement this method to perform actual logging. |
void |
WriterAppender.append(LoggingEvent event)
This method is called by the
AppenderSkeleton.doAppend(org.apache.log4j.spi.LoggingEvent) method. |
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)
This method performs threshold checks and invokes filters before delegating actual logging to the subclasses
specific
AppenderSkeleton.append(org.apache.log4j.spi.LoggingEvent) method. |
String |
EnhancedPatternLayout.format(LoggingEvent event)
Formats a logging event to a writer.
|
String |
HTMLLayout.format(LoggingEvent event) |
abstract String |
Layout.format(LoggingEvent event)
Implement this method to create your own layout format.
|
String |
PatternLayout.format(LoggingEvent event)
Produces a formatted string as specified by the conversion pattern.
|
String |
SimpleLayout.format(LoggingEvent event)
Returns the log statement in a format consisting of the
level , followed by " - " and then the
message . |
String |
TTCCLayout.format(LoggingEvent event)
In addition to the level of the statement and message, the returned byte array includes time, thread, category
and
NDC information. |
protected boolean |
WriterAppender.shouldFlush(LoggingEvent event)
Determines whether the writer should be flushed after this event is written.
|
protected void |
DailyRollingFileAppender.subAppend(LoggingEvent event)
This method differentiates DailyRollingFileAppender from its super class.
|
protected void |
RollingFileAppender.subAppend(LoggingEvent event)
This method differentiates RollingFileAppender from its super class.
|
protected void |
WriterAppender.subAppend(LoggingEvent event)
Actual writing occurs here.
|
Modifier and Type | Method and Description |
---|---|
LoggingEvent |
BoundedFIFO.get()
Get the first element in the buffer.
|
LoggingEvent |
CyclicBuffer.get()
Get the oldest (first) element in the buffer.
|
LoggingEvent |
CyclicBuffer.get(int i)
Get the ith oldest event currently in the buffer.
|
Modifier and Type | Method and Description |
---|---|
void |
CyclicBuffer.add(LoggingEvent event)
Add an
event as the last event in the buffer. |
int |
AppenderAttachableImpl.appendLoopOnAppenders(LoggingEvent event)
Call 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 |
OnlyOnceErrorHandler.error(String message,
Exception e,
int errorCode,
LoggingEvent event)
Prints the message and the stack trace of the exception on
System.err . |
void |
PatternConverter.format(StringBuffer sbuf,
LoggingEvent e)
A template method for formatting in a converter specific way.
|
Set |
MDCKeySetExtractor.getPropertyKeySet(LoggingEvent event) |
void |
BoundedFIFO.put(LoggingEvent o)
Place a
LoggingEvent in the buffer. |
Modifier and Type | Field and Description |
---|---|
protected ArrayList<LoggingEvent> |
JDBCAppender.buffer
ArrayList holding the buffer of Logging Events.
|
Modifier and Type | Method and Description |
---|---|
void |
JDBCAppender.append(LoggingEvent event)
Adds the event to the buffer.
|
protected String |
JDBCAppender.getLogStatement(LoggingEvent event)
As of 1.2.18.1
JDBCAppender.getLogStatement(org.apache.log4j.spi.LoggingEvent) is no longer in use. |
Modifier and Type | Method and Description |
---|---|
void |
JMSAppender.append(LoggingEvent event)
This method called by
AppenderSkeleton.doAppend(org.apache.log4j.spi.LoggingEvent) method to do most of the real appending work. |
void |
SMTPAppender.append(LoggingEvent event)
Perform SMTPAppender specific appending actions, mainly adding the event to a cyclic buffer and checking if the
event triggers an e-mail to be sent.
|
void |
SocketAppender.append(LoggingEvent event) |
void |
SocketHubAppender.append(LoggingEvent event)
Append an event to all of current connections.
|
void |
SyslogAppender.append(LoggingEvent event) |
protected void |
TelnetAppender.append(LoggingEvent event)
Handles a log event.
|
Modifier and Type | Method and Description |
---|---|
protected String |
BridgePatternConverter.convert(LoggingEvent event)
Derived pattern converters must override this method in order to convert conversion specifiers in the correct
way.
|
void |
ClassNamePatternConverter.format(LoggingEvent event,
StringBuffer toAppendTo)
Format a logging event.
|
void |
DatePatternConverter.format(LoggingEvent event,
StringBuffer output)
Formats an event into a string buffer.
|
void |
FileLocationPatternConverter.format(LoggingEvent event,
StringBuffer output)
Formats an event into a string buffer.
|
void |
FullLocationPatternConverter.format(LoggingEvent event,
StringBuffer output)
Formats an event into a string buffer.
|
void |
LevelPatternConverter.format(LoggingEvent event,
StringBuffer output)
Formats an event into a string buffer.
|
void |
LineLocationPatternConverter.format(LoggingEvent event,
StringBuffer output)
Formats an event into a string buffer.
|
void |
LineSeparatorPatternConverter.format(LoggingEvent event,
StringBuffer toAppendTo)
Formats an event into a string buffer.
|
void |
LiteralPatternConverter.format(LoggingEvent event,
StringBuffer toAppendTo)
Formats an event into a string buffer.
|
void |
LoggerPatternConverter.format(LoggingEvent event,
StringBuffer toAppendTo)
Formats an event into a string buffer.
|
abstract void |
LoggingEventPatternConverter.format(LoggingEvent event,
StringBuffer toAppendTo)
Formats an event into a string buffer.
|
void |
MessagePatternConverter.format(LoggingEvent event,
StringBuffer toAppendTo)
Formats an event into a string buffer.
|
void |
MethodLocationPatternConverter.format(LoggingEvent event,
StringBuffer toAppendTo)
Formats an event into a string buffer.
|
void |
NDCPatternConverter.format(LoggingEvent event,
StringBuffer toAppendTo)
Formats an event into a string buffer.
|
void |
PropertiesPatternConverter.format(LoggingEvent event,
StringBuffer toAppendTo)
Formats an event into a string buffer.
|
void |
RelativeTimePatternConverter.format(LoggingEvent event,
StringBuffer toAppendTo)
Formats an event into a string buffer.
|
void |
SequenceNumberPatternConverter.format(LoggingEvent event,
StringBuffer toAppendTo)
Formats an event into a string buffer.
|
void |
ThreadPatternConverter.format(LoggingEvent event,
StringBuffer toAppendTo)
Formats an event into a string buffer.
|
void |
ThrowableInformationPatternConverter.format(LoggingEvent event,
StringBuffer toAppendTo)
Formats an event into a string buffer.
|
void |
BridgePatternConverter.format(StringBuffer sbuf,
LoggingEvent e)
Format event to string buffer.
|
Modifier and Type | Method and Description |
---|---|
LoggingEvent |
MapRewritePolicy.rewrite(LoggingEvent source)
Rewrite a logging event.
|
LoggingEvent |
PropertyRewritePolicy.rewrite(LoggingEvent source)
Rewrite a logging event.
|
LoggingEvent |
ReflectionRewritePolicy.rewrite(LoggingEvent source)
Rewrite a logging event.
|
LoggingEvent |
RewritePolicy.rewrite(LoggingEvent source)
Rewrite a logging event.
|
Modifier and Type | Method and Description |
---|---|
protected void |
RewriteAppender.append(LoggingEvent event)
Subclasses of
AppenderSkeleton should implement this method to perform actual logging. |
LoggingEvent |
MapRewritePolicy.rewrite(LoggingEvent source)
Rewrite a logging event.
|
LoggingEvent |
PropertyRewritePolicy.rewrite(LoggingEvent source)
Rewrite a logging event.
|
LoggingEvent |
ReflectionRewritePolicy.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)
Is this the triggering event?
|
Modifier and Type | Method and Description |
---|---|
protected void |
NullAppender.append(LoggingEvent event)
Does not do anything.
|
int |
DenyAllFilter.decide(LoggingEvent event)
Always returns the integer constant
Filter.DENY regardless of the LoggingEvent parameter. |
int |
LevelMatchFilter.decide(LoggingEvent event)
Return the decision of this filter.
|
int |
LevelRangeFilter.decide(LoggingEvent event)
Return the decision of this filter.
|
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 . |
Modifier and Type | Method and Description |
---|---|
String |
XMLLayout.format(LoggingEvent event)
Formats a
LoggingEvent in conformance with the log4j.dtd. |
Copyright © 1999–2023 QOS.CH Sarl (Switzerland). All rights reserved.