Package org.apache.log4j
The main log4j package.
-
Interface Summary Interface Description Appender Implement this interface for your own strategies for outputting log statements. -
Class Summary Class Description AppenderSkeleton Abstract superclass of the other appenders in the package.AsyncAppender The AsyncAppender lets users log events asynchronously.AsyncAppender.DiscardSummary Summary of discarded logging events for a logger.AsyncAppender.Dispatcher Event dispatcher.BasicConfigurator Use this class to quickly configure the package.Category This class has been deprecated and replaced by theLogger
subclass.CategoryKey CategoryKey is a wrapper for String that apparently accellerated hash table lookup in early JVM's.ConsoleAppender ConsoleAppender appends log events toSystem.out
orSystem.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.DailyRollingFileAppender DailyRollingFileAppender extendsFileAppender
so that the underlying file is rolled over at a user chosen frequency.DefaultCategoryFactory DefaultThrowableRenderer Default implementation of ThrowableRenderer using Throwable.printStackTrace.Dispatcher Deprecated. Since 1.3.EnhancedPatternLayout This class is an enhanced version of org.apache.log4j.PatternLayout which was originally developed as part of the abandoned log4j 1.3 effort and has been available in the extras companion.EnhancedThrowableRenderer Enhanced implementation of ThrowableRenderer.FileAppender FileAppender appends log events to a file.FilteredObjectInputStream Extended ObjectInputStream that only allows certain classes to be deserialized.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 isOFF
,FATAL
,ERROR
,WARN
,INFO
DEBUG andALL
.Logger This is the central class in the log4j package.LogManager Use theLogManager
class to retreiveLogger
instances or to operate on the currentLoggerRepository
.LogMF This class provides parameterized logging services using the pattern syntax of java.text.MessageFormat.LogSF This class provides parameterized logging services using the SLF4J pattern syntax.LogXF This is a base class for LogMF and LogSF parameterized logging classes.MDC The MDC class is similar to theNDC
class except that it is based on a map instead of a stack.NameValue 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 theLevel
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.SortedKeyEnumeration TTCCLayout TTCC layout format consists of time, thread, category and nested diagnostic context information, hence the name.WriterAppender WriterAppender appends log events to aWriter
or anOutputStream
depending on the user's choice.