Package org.apache.log4j

The main log4j package.

Interface Summary

AppenderImplement this interface for your own strategies for outputting log statements.

Class Summary

AppenderSkeleton Abstract superclass of the other appenders in the package.
AsyncAppenderThe AsyncAppender lets users log events asynchronously.
BasicConfiguratorUse this class to quickly configure the package.
Category This class has been deprecated and replaced by the Logger subclass.
ConsoleAppender ConsoleAppender appends log events to System.out or System.err using a layout specified by the user.
DailyRollingFileAppenderDailyRollingFileAppender extends FileAppender so that the underlying file is rolled over at a user chosen frequency.
FileAppender FileAppender appends log events to a file.
HierarchyThis class is specialized in retrieving loggers by name and also maintaining the logger hierarchy.
HTMLLayoutThis layout outputs events in a HTML table.
LayoutExtend this abstract class to create your own log layout format.
LevelDefines the minimum set of levels recognized by the system, that is OFF, FATAL, ERROR, WARN, INFODEBUG and ALL.
LoggerThis is the central class in the log4j package.
LogManager Use the LogManager class to retreive Logger instances or to operate on the current LoggerRepository.
MDCThe MDC class is similar to the NDC class except that it is based on a map instead of a stack.
NDCThe 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.
PatternLayoutA flexible layout configurable with pattern string.
PriorityRefrain from using this class directly, use the Level class instead.
PropertyConfiguratorAllows the configuration of log4j from an external file.
RollingFileAppenderRollingFileAppender extends FileAppender to backup the log files when they reach a certain size.
SimpleLayoutSimpleLayout consists of the level of the log statement, followed by " - " and then the log message itself.
TTCCLayoutTTCC layout format consists of time, thread, category and nested diagnostic context information, hence the name.
WriterAppenderWriterAppender appends log events to a Writer or an OutputStream depending on the user's choice.
The main log4j package.

Copyright 2000-2005 Apache Software Foundation.