Class Summary | |
---|---|
AbsoluteTimeDateFormat | Formats a {@link Date} in the format "HH:mm:ss,SSS" for example, "15:49:37,459". |
AbstractDynamicMBean | |
Agent | |
Appender | Implement this interface for your own strategies for outputting log statements. |
AppenderAttachable | Interface for attaching appenders to objects. |
AppenderAttachableImpl | A straightforward implementation of the {@link AppenderAttachable} interface. |
AppenderDynamicMBean | |
AppenderFinalizer |
AppenderFinalizer has a single method that will finalize
resources associated with a LogBrokerMonitor in the event
that the LF5Appender class is destroyed, and the class loader
is garbage collected.
|
AppenderSkeleton | Abstract superclass of the other appenders in the package. |
AsyncAppender | The AsyncAppender lets users log events asynchronously. |
AttributesRenderer |
Render org.xml.sax.Attributes objects. |
BasicConfigurator | Use this class to quickly configure the package. |
BoundedFIFO |
BoundedFIFO serves as the bounded first-in-first-out
buffer heavily used by the {@link org.apache.log4j.AsyncAppender}. |
Category | This class has been deprecated and replaced by the {@link Logger} subclass. |
Configurator | Implemented by classes capable of configuring log4j using a URL. |
ConsoleAppender |
ConsoleAppender appends log events to System.out or
System.err using a layout specified by the user. |
CountingQuietWriter | Counts the number of bytes written. |
CyclicBuffer | CyclicBuffer is used by other appenders to hold {@link LoggingEvent LoggingEvents} for immediate or differed display. |
DailyRollingFileAppender | DailyRollingFileAppender extends {@link FileAppender} so that the underlying file is rolled over at a user chosen frequency. |
DateLayout | This abstract layout takes care of all the date related options and formatting work. |
DateTimeDateFormat | Formats a {@link Date} in the format "dd MMM yyyy HH:mm:ss,SSS" for example, "06 Nov 1994 15:49:37,459". |
DefaultLF5Configurator |
The DefaultLF5Configurator provides a default
configuration for the LF5Appender .
|
DefaultRepositorySelector | |
DenyAllFilter | This filter drops all logging events. |
DOMConfigurator | Use this class to initialize the log4j environment using a DOM tree. |
ErrorCode | This interface defines commonly encoutered error codes. |
ErrorHandler |
Appenders may delegate their error handling to
ErrorHandlers .
|
ExternallyRolledFileAppender | This appender listens on a socket on the port specified by the Port property for a "RollOver" message. |
FallbackErrorHandler |
The FallbackErrorHandler implements the ErrorHandler
interface such that a secondary appender may be specified. |
FileAppender | FileAppender appends log events to a file. |
FileWatchdog | Check every now and then that a certain file has not changed. |
Filter | Users should extend this class to implement customized logging event filtering. |
FormattingInfo | FormattingInfo instances contain the information obtained when parsing formatting modifiers in conversion modifiers. |
Hierarchy | This class is specialized in retrieving loggers by name and also maintaining the logger hierarchy. |
HierarchyDynamicMBean | |
HierarchyEventListener | Listen to events occuring within a {@link org.apache.log4j.Hierarchy Hierarchy}. |
HTMLLayout | This layout outputs events in a HTML table. |
ISO8601DateFormat | Formats a {@link Date} in the format "yyyy-MM-dd HH:mm:ss,SSS" for example "1999-11-27 15:49:37,459". |
JDBCAppender |
WARNING: This version of JDBCAppender is very likely to be completely replaced in the future. |
JMSAppender | A simple appender that publishes events to a JMS Topic. |
JMSSink | A simple application that consumes logging events sent by a {@link JMSAppender}. |
Layout | Extend this abstract class to create your own log layout format. |
LayoutDynamicMBean | |
Level |
Defines the minimum set of levels recognized by the system, that is
OFF , FATAL , ERROR ,
WARN , INFO DEBUG and
ALL .
|
LevelMatchFilter | This is a very simple filter based on level matching. |
LevelRangeFilter | This is a very simple filter based on level matching, which can be used to reject messages with priorities outside a certain range. |
LF5Appender |
LF5Appender logs events to a swing based logging
console. |
ListVsVector | Compares the performance of looping through a list versus a Vector. |
Loader | Load resources (or images) from various sources. |
LocationInfo | The internal representation of caller location information. |
Log4jEntityResolver |
An {@link EntityResolver} specifically designed to return
log4j.dtd which is embedded within the log4j jar
file.
|
Log4JLogRecord |
A Log4JLogRecord encapsulates
the details of your log4j LoggingEvent in a format usable
by the LogBrokerMonitor .
|
Logger | This is the central class in the log4j package. |
LoggerDynamicMBean | |
LoggerFactory | Implement this interface to create new instances of Logger or a sub-class of Logger. |
LoggerRepository |
A LoggerRepository is used to create and retrieve
Loggers . |
LoggingEvent | The internal representation of logging events. |
LogLevel | The LogLevel class defines a set of standard logging levels. |
LogLevelFormatException | Thrown to indicate that the client has attempted to convert a string to one the LogLevel types, but the string does not have the appropriate format. |
LogLog | This class used to output log statements from within the log4j package. |
LogManager |
Use the LogManager class to retreive {@link Logger}
instances or to operate on the current {@link
LoggerRepository}. |
LogRecord | LogRecord. |
LogRecordFilter | An interface for classes which filters LogRecords. |
Main | The main application. |
MDC | The MDC class is similar to the {@link NDC} class except that it is based on a map instead of a stack. |
MessageRenderer |
Render javax.jms.Message objects. |
NDC | The NDC class implements nested diagnostic contexts as defined by Neil Harrison in the article "Patterns for Logging Diagnostic Messages" part of the book "Pattern Languages of Program Design 3" edited by Martin et al. |
NewVsSetLen | This program compares the cost of creating a new StringBuffer and converting it to a String versus keeping the same StringBuffer, setting its size to zero and then converting it to String. |
NOPWriter |
Extends {@link Writer} with methods that return immediately without doing anything. |
NTEventLogAppender | Append to the NT event log system. |
NullAppender | A bogus appender which calls the format method of its layout object but does not write the result anywhere. |
NullAppender | A NullAppender merely exists, it never outputs a message to any device. |
NullEnumeration | An always-empty Enumerator. |
ObjectRenderer | Implement this interface in order to render objects as strings. |
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.
|
OptionConverter | A convenience class to convert property values to specific types. |
OptionHandler | A string based interface to configure package components. |
PassingLogRecordFilter | An implementation of LogRecordFilter which always returns true. |
PatternConverter |
PatternConverter is an abtract class that provides the formatting functionality that derived classes need. |
PatternLayout | A flexible layout configurable with pattern string. |
PatternParser | Most of the work of the {@link org.apache.log4j.PatternLayout} class is delegated to the PatternParser class. |
Priority | Refrain from using this class directly, use the {@link Level} class instead. |
PropertyConfigurator | Allows the configuration of log4j from an external file. |
PropertyGetter | Used for inferring configuration information for a log4j's component. |
PropertyGetter.PropertyCallback | |
PropertyPrinter | Prints the configuration of the log4j default hierarchy (which needs to be auto-initialized) as a propoperties file on a {@link PrintWriter}. |
PropertySetter | General purpose Object property setter. |
PropertySetterException | Thrown when an error is encountered whilst attempting to set a property using the {@link PropertySetter} utility class. |
QuietWriter | QuietWriter does not throw exceptions when things go wrong. |
RelativeTimeDateFormat | Formats a {@link Date} by printing the number of milliseconds elapsed since construction of the format. |
ReloadingPropertyConfigurator | |
RendererMap | Map class objects to an {@link ObjectRenderer}. |
RendererSupport | |
ReportParserError | This class is needed for validating a log4j.dtd derived XML file. |
RepositorySelector |
The LogManager uses one (and only one)
RepositorySelector implementation to select the
{@link LoggerRepository} for a particular application context.
|
Roller | A simple application to send roll over messages to a potentially remote {@link ExternallyRolledFileAppender}. |
RollingFileAppender | RollingFileAppender extends FileAppender to backup the log files when they reach a certain size. |
RootCategory | |
RootLogger | RootLogger sits at the top of the logger hierachy. |
SAXErrorHandler | |
SimpleLayout | SimpleLayout consists of the level of the log statement, followed by " - " and then the log message itself. |
SimpleSocketServer | A simple {@link SocketNode} based server. |
SMTPAppender | Send an e-mail when a specific logging event occurs, typically on errors or fatal errors. |
SocketAppender | Sends {@link LoggingEvent} objects to a remote a log server, usually a {@link SocketNode}. |
SocketHubAppender | Sends {@link LoggingEvent} objects to a set of remote log servers, usually a {@link SocketNode SocketNodes}. |
SocketNode | Read {@link LoggingEvent} objects sent from a remote client using Sockets (TCP). |
SocketServer | A {@link SocketNode} based server that uses a different hierarchy for each client. |
StartLogFactor5 | Starts an instance of the LogFactor5 console for off-line viewing. |
StringMatchFilter | This is a very simple filter based on string matching. |
SyslogAppender | Use SyslogAppender to send log messages to a remote syslog daemon. |
SyslogQuietWriter | SyslogQuietWriter extends QuietWriter by prepending the syslog level code before each printed String. |
SyslogWriter | SyslogWriter is a wrapper around the java.net.DatagramSocket class so that it behaves like a java.io.Writer. |
SystemTime | Measures the time required to make a System.currentTimeMillis() and Thread.currentThread().getName() calls. |
TelnetAppender |
The TelnetAppender is a log4j appender that specializes in writing to a read-only socket. |
TelnetAppender.SocketHandler | The SocketHandler class is used to accept connections from clients. |
ThreadGroupRenderer | Render {@link ThreadGroup} objects in a format similar to the information output by the {@link ThreadGroup#list} method. |
ThreadLocalMap |
ThreadLocalMap extends {@link InheritableThreadLocal}
to bequeath a copy of the hashtable of the MDC of the parent
thread. |
ThrowableInformation | ThrowableInformation is log4j's internal representation of throwables. |
Transform | Utility class for transforming strings. |
TriggeringEventEvaluator | Implementions of this interface allow certain appenders to decide when to perform an appender specific action. |
TTCCLayout | TTCC layout format consists of time, thread, category and nested diagnostic context information, hence the name. |
WriterAppender | WriterAppender appends log events to a {@link java.io.Writer} or an {@link java.io.OutputStream} depending on the user's choice. |
XMLLayout | The output of the XMLLayout consists of a series of log4j:event elements as defined in the log4j.dtd. |
XMLSample | This example code shows how to read an XML based configuration file using a DOM parser. |