Package | Description |
---|---|
org.apache.log4j |
The main log4j package.
|
org.apache.log4j.helpers |
This package is used internally.
|
org.apache.log4j.jdbc |
The JDBCAppender provides for sending log events to a database.
|
org.apache.log4j.net |
Package for remote logging.
|
org.apache.log4j.performance |
Package to measure the performance of the different log4j
components.
|
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 |
HTMLLayout
This layout outputs events in a HTML table.
|
class |
Layout
Extend this abstract class to create your own log layout format.
|
class |
PatternLayout
A flexible layout configurable with pattern string.
|
class |
RollingFileAppender
RollingFileAppender extends FileAppender to backup the log files when
they reach a certain size.
|
class |
SimpleLayout
SimpleLayout consists of the level of the log statement,
followed by " - " and then the log message itself.
|
class |
TTCCLayout
TTCC layout format consists of time, thread, category and nested
diagnostic context information, hence the name.
|
class |
WriterAppender
WriterAppender appends log events to a
Writer or an
OutputStream depending on the user's choice. |
Modifier and Type | Class and Description |
---|---|
class |
DateLayout
This abstract layout takes care of all the date related options and
formatting work.
|
class |
OnlyOnceErrorHandler
The
OnlyOnceErrorHandler implements log4j's default
error handling policy which consists of emitting a message for the
first error in an appender and ignoring all following errors. |
Modifier and Type | Class and Description |
---|---|
class |
JDBCAppender
WARNING: This version of JDBCAppender
is very likely to be completely replaced in the future.
|
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 |
NullAppender
A bogus appender which calls the format method of its layout object
but does not write the result anywhere.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ErrorHandler
Appenders may delegate their error handling to
ErrorHandlers . |
Modifier and Type | Class and Description |
---|---|
class |
Filter
Users should extend this class to implement customized logging
event filtering.
|
Modifier and Type | Class and Description |
---|---|
class |
DenyAllFilter
This filter drops all logging events.
|
class |
ExternallyRolledFileAppender
This appender listens on a socket on the port specified by the
Port property for a "RollOver" message.
|
class |
FallbackErrorHandler
The
FallbackErrorHandler implements the ErrorHandler
interface such that a secondary appender may be specified. |
class |
LevelMatchFilter
This is a very simple filter based on level matching.
|
class |
LevelRangeFilter
This is a very simple filter based on level matching, which can be
used to reject messages with priorities outside a certain range.
|
class |
StringMatchFilter
This is a very simple filter based on string matching.
|
Modifier and Type | Class and Description |
---|---|
class |
XMLLayout
The output of the XMLLayout consists of a series of log4j:event
elements as defined in the log4j.dtd.
|
Copyright 2000-2005 Apache Software Foundation.