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.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 | Class and Description |
---|---|
class |
AppenderSkeleton
Abstract superclass of the other appenders in the package.
|
class |
AsyncAppender
The AsyncAppender lets users log events asynchronously.
|
class |
ConsoleAppender
ConsoleAppender appends log events to
System.out or
System.err using a layout specified by the user. |
class |
DailyRollingFileAppender
DailyRollingFileAppender extends
FileAppender so that the underlying file is rolled over at a user chosen
frequency. |
class |
FileAppender
FileAppender appends log events to a file.
|
class |
RollingFileAppender
RollingFileAppender extends FileAppender to backup the log files when they reach a certain size.
|
class |
WriterAppender
WriterAppender appends log events to a
Writer or an OutputStream depending on the
user's choice. |
Modifier and Type | Method and Description |
---|---|
Appender |
AsyncAppender.getAppender(String name)
Get appender by name.
|
Appender |
Category.getAppender(String name)
Look for the appender named as
name . |
Modifier and Type | Method and Description |
---|---|
void |
AsyncAppender.addAppender(Appender newAppender)
Add appender.
|
void |
Category.addAppender(Appender newAppender)
Add
newAppender to the list of appenders of this Category instance. |
static void |
BasicConfigurator.configure(Appender appender)
Add
appender to the root category. |
void |
Hierarchy.fireAddAppenderEvent(Category logger,
Appender appender) |
boolean |
AsyncAppender.isAttached(Appender appender)
Determines if specified appender is attached.
|
boolean |
Category.isAttached(Appender appender)
Is the appender passed as parameter attached to this category?
|
void |
AsyncAppender.removeAppender(Appender appender)
Removes an appender.
|
void |
Category.removeAppender(Appender appender)
Remove the appender passed as parameter form the list of appenders.
|
Modifier and Type | Method and Description |
---|---|
Appender |
AppenderAttachableImpl.getAppender(String name)
Look for an attached appender named as
name . |
Modifier and Type | Method and Description |
---|---|
void |
AppenderAttachableImpl.addAppender(Appender newAppender)
Attach an appender.
|
boolean |
AppenderAttachableImpl.isAttached(Appender appender)
Returns
true if the specified appender is in the list of attached appenders, false
otherwise. |
void |
AppenderAttachableImpl.removeAppender(Appender appender)
Remove the appender passed as parameter form the list of attached appenders.
|
void |
OnlyOnceErrorHandler.setAppender(Appender appender)
Does not do anything.
|
void |
OnlyOnceErrorHandler.setBackupAppender(Appender appender)
Does not do anything.
|
Modifier and Type | Class and Description |
---|---|
class |
JDBCAppender
The JDBCAppender provides for sending log events to a database.
|
Modifier and Type | Class and Description |
---|---|
class |
JMSAppender
A simple appender that publishes events to a JMS Topic.
|
class |
SMTPAppender
Send an e-mail when a specific logging event occurs, typically on errors or
fatal errors.
|
class |
SocketAppender
Sends
LoggingEvent objects to a remote a log server, usually a SocketNode . |
class |
SocketHubAppender
Sends
LoggingEvent objects to a set of remote log servers, usually a SocketNodes . |
class |
SyslogAppender
Use SyslogAppender to send log messages to a remote syslog daemon.
|
class |
TelnetAppender
The TelnetAppender is a log4j appender that specializes in writing to a read-only socket.
|
Modifier and Type | Class and Description |
---|---|
class |
RewriteAppender
This appender forwards a logging request to another appender after possibly rewriting the logging event.
|
Modifier and Type | Method and Description |
---|---|
Appender |
RewriteAppender.getAppender(String name)
Get appender by name.
|
Modifier and Type | Method and Description |
---|---|
void |
RewriteAppender.addAppender(Appender newAppender)
Add appender.
|
boolean |
RewriteAppender.isAttached(Appender appender)
Determines if specified appender is attached.
|
void |
RewriteAppender.removeAppender(Appender appender)
Removes an appender.
|
Modifier and Type | Method and Description |
---|---|
Appender |
AppenderAttachable.getAppender(String name)
Get an appender by name.
|
Appender |
NOPLogger.getAppender(String name)
Look for the appender named as
name . |
Modifier and Type | Method and Description |
---|---|
void |
AppenderAttachable.addAppender(Appender newAppender)
Add an appender.
|
void |
NOPLogger.addAppender(Appender newAppender)
Add
newAppender to the list of appenders of this Category instance. |
void |
HierarchyEventListener.addAppenderEvent(Category cat,
Appender appender) |
void |
LoggerRepository.fireAddAppenderEvent(Category logger,
Appender appender) |
void |
NOPLoggerRepository.fireAddAppenderEvent(Category logger,
Appender appender) |
boolean |
AppenderAttachable.isAttached(Appender appender)
Returns
true if the specified appender is in list of attached attached, false
otherwise. |
boolean |
NOPLogger.isAttached(Appender appender)
Is the appender passed as parameter attached to this category?
|
void |
AppenderAttachable.removeAppender(Appender appender)
Remove the appender passed as parameter from the list of appenders.
|
void |
NOPLogger.removeAppender(Appender appender)
Remove the appender passed as parameter form the list of appenders.
|
void |
HierarchyEventListener.removeAppenderEvent(Category cat,
Appender appender) |
void |
ErrorHandler.setAppender(Appender appender)
Set the appender for which errors are handled.
|
void |
ErrorHandler.setBackupAppender(Appender appender)
Set the appender to falkback upon in case of failure.
|
Modifier and Type | Class and Description |
---|---|
class |
ExternallyRolledFileAppender
This appender listens on a socket on the port specified by the Port property for a "RollOver" message.
|
class |
NullAppender
A NullAppender merely exists, it never outputs a message to any device.
|
Modifier and Type | Method and Description |
---|---|
void |
FallbackErrorHandler.setAppender(Appender primary)
The appender to which this error handler is attached.
|
void |
FallbackErrorHandler.setBackupAppender(Appender backup)
Set the backup appender.
|
Modifier and Type | Method and Description |
---|---|
protected Appender |
DOMConfigurator.findAppenderByName(Document doc,
String appenderName)
Used internally to parse appenders by IDREF name.
|
protected Appender |
DOMConfigurator.findAppenderByReference(Element appenderRef)
Used internally to parse appenders by IDREF element.
|
protected Appender |
DOMConfigurator.parseAppender(Element appenderElement)
Used internally to parse an appender element.
|
Modifier and Type | Method and Description |
---|---|
protected void |
DOMConfigurator.parseErrorHandler(Element element,
Appender appender)
Used internally to parse an
ErrorHandler element. |
protected void |
DOMConfigurator.parseFilters(Element element,
Appender appender)
Used internally to parse a filter element.
|
Copyright © 1999–2023 QOS.CH Sarl (Switzerland). All rights reserved.