Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Package org.apache.log4j

Interface Summary
Appender Implement this interface for your own strategies for outputting log statements.
 

Class Summary
AppenderSkeleton Abstract superclass of the other appenders in the package.
AsyncAppender The AsyncAppender lets users log events asynchronously.
BasicConfigurator Use this class to quickly configure the package.
Category This class has been deprecated and replaced by the Logger subclass.
CategoryKey CategoryKey is a wrapper for String that apparently accellerated hash table lookup in early JVM's.
CompositeRollingAppender CompositeRollingAppender combines RollingFileAppender and DailyRollingFileAppender
It can function as either or do both at the same time (making size based rolling files like RollingFileAppender until a data/time boundary is crossed at which time it rolls all of those files as per the DailyRollingFileAppender) based on the setting for rollingStyle.

To use CompositeRollingAppender to roll log files as they reach a certain size (like RollingFileAppender), set rollingStyle=1 (@see config.size)
To use CompositeRollingAppender to roll log files at certain time intervals (daily for example), set rollingStyle=2 and a datePattern (@see config.time)
To have CompositeRollingAppender roll log files at a certain size AND rename those according to time intervals, set rollingStyle=3 (@see config.composite)
ConsoleAppender ConsoleAppender appends log events to System.out or System.err using a layout specified by the user.
ConsoleAppender.SystemErrStream An implementation of OutputStream that redirects to the current System.err.
ConsoleAppender.SystemOutStream An implementation of OutputStream that redirects to the current System.out.
DailyFileAppender DailyFileAppender extends FileAppender to use filenames formatted with date/time information.
DailyFileAppenderCalendar DailyFileAppenderCalendar is a helper class to DailyFileAppender.
DailyRollingFileAppender DailyRollingFileAppender extends FileAppender so that the underlying file is rolled over at a user chosen frequency.
DefaultCategoryFactory  
Dispatcher  
FileAppender FileAppender appends log events to a file.
Hierarchy This class is specialized in retrieving loggers by name and also maintaining the logger hierarchy.
HTMLLayout This layout outputs events in a HTML table.
Layout Extend this abstract class to create your own log layout format.
Level Defines the minimum set of levels recognized by the system, that is OFF, FATAL, ERROR, WARN, INFODEBUG and ALL.
Logger This is the central class in the log4j package.
LogManager Use the LogManager class to retreive Logger instances or to operate on the current org.apache.log4j.spi.LoggerRepository.
MDC The MDC class is similar to the NDC class except that it is based on a map instead of a stack.
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.
NDC.DiagnosticContext  
PatternLayout A flexible layout configurable with pattern string.
Priority Refrain from using this class directly, use the Level class instead.
PropertyConfigurator Allows the configuration of log4j from an external file.
PropertyWatchdog  
ProvisionNode  
RollingCalendar RollingCalendar is a helper class to DailyRollingFileAppender.
RollingFileAppender RollingFileAppender extends FileAppender to backup the log files when they reach a certain size.
SimpleLayout SimpleLayout consists of the level of the log statement, followed by " - " and then the log message itself.
TempFileAppender TempFileAppender creates new unique file for each logging statement.
TTCCLayout TTCC layout format consists of time, thread, category and nested diagnostic context information, hence the name.
WriterAppender WriterAppender appends log events to a java.io.Writer or an java.io.OutputStream depending on the user's choice.