All Classes and Interfaces
Class
Description
Formats a
Date in the format "HH:mm:ss,SSS" for example, "15:49:37,459".Base class for Log4j 1 component builders.
Deprecated.
Implement this interface for your own strategies for outputting log
statements.
Binds a Log4j 1.x Appender to Log4j 2.
Interface for attaching appenders to objects.
Allows Classes to attach Appenders.
Define an Appender Builder.
The base class for Appenders in Log4j 1.
Wraps a Log4j 2 Appender in an empty Log4j 1 Appender so it can be extracted when constructing the configuration.
Build an Asynch Appender
Configures the package.
Deprecated.
Bounded first-in-first-out buffer.
A marker interface for Log4j 1.x component builders.
Implementation of the Category class for compatibility, despite it having been deprecated a long, long time ago.
Delegates to
Logger methods implemented by log4j-core if appropriate.Log4j 1.x Configurator interface.
Placeholder for Log4j 1.2 Console Appender.
Build a Console Appender
Constants used internally throughout log4j.
Delegates to
LoggerContext methods implemented by log4j-core if appropriate.Counts the number of bytes written.
Holds
LoggingEvents for immediate or differed display.Build a Daily Rolling File Appender
This abstract layout takes care of all the date related options and formatting work.
Formats a
Date in the format "dd MMM yyyy HH:mm:ss,SSS" for example, "06 Nov 1994 15:49:37,459".Default implementation of
ThrowableRenderer using Throwable.printStackTrace(PrintWriter).Denies all logging events.
Build a Pattern Layout
Use this class to initialize the log4j environment using a DOM tree.
Build a File Appender
This interface defines commonly encoutered error codes.
Appenders may delegate their error handling to
ErrorHandlers.Makes a Log4j 1 ErrorHandler usable by a Log4j 2 Appender.
An ErrorHandler with a secondary appender.
FileAppender appends log events to a file.
Build a File Appender
Checks every now and then that a certain file has not changed.
Binds a Log4j 1.x Filter with Log4j 2.
Define a Filter Builder.
This acts as a container for Log4j 2 Filters to be attached to Log4j 1 components.
FormattingInfo instances contain the information obtained when parsing formatting modifiers in conversion modifiers.
Modifies the output of a pattern converter for a specified minimum and maximum width and alignment.
This class is specialized in retrieving loggers by name and also maintaining the logger hierarchy.
Listen to events occurring within a Hierarchy.
Deprecated.
Use
AtomicReference.Build a Pattern Layout
Formats a
Date in the format "yyyy-MM-dd HH:mm:ss,SSS" for example "1999-11-27 15:49:37,459".Class Description goes here.
Define a Layout Builder.
Bridge between the Log4j 1 Layout and a Log4j 2 Layout.
Defines the minimum set of levels recognized by the system, that is
OFF, FATAL, ERROR,
WARN, INFO, DEBUG
and ALL.Simple filter based on level matching.
Build a Level match failter.
This is a very simple filter based on level matching, which can be used to reject messages with priorities outside a
certain range.
Build a Level range filter.
Loads resources (or images) from various sources.
The internal representation of caller location information.
Class Description goes here.
Tool for converting a Log4j 1.x properties configuration file to Log4j 2.x XML configuration file.
Experimental ConfigurationFactory for Log4j 1.2 properties configuration files.
Experimental parser for Log4j 1.2 properties configuration files.
Outputs the Log4j 1.x level name.
Able to handle the contents of the LogEvent's MDC and either
output the entire contents of the properties, or to output the value of a specific key
within the property bundle when this pattern converter has the option set.
Returns the event's NDC in a StringBuilder.
Port of the layout used by SyslogAppender in Log4j 1.x.
Builds a SyslogLayout.
Port of XMLLayout in Log4j 1.x.
An
EntityResolver specifically designed to return
log4j.dtd which is embedded within the log4j jar
file.Converts a Log4j 2 LogEvent into the components needed by a Log4j 1.x LoggingEvent.
Exposes a Log4j 1 logging event as a Log4j 2 LogEvent.
Implement this interface to create new instances of Logger or a sub-class of Logger.
A
LoggerRepository is used to create and retrieve Loggers.No-op version of Log4j 1.2 LoggingEvent.
Logs statements from within Log4j.
The main entry point to Log4j 1.
This policy rewrites events where the message of the
original event implements java.util.Map.
This class behaves just like Log4j's MDC would - and so can cause issues with the redeployment of web
applications if the Objects stored in the threads Map cannot be garbage collected.
Log4j 1.x JMS Message Renderer
NameAbbreviator generates abbreviated logger and class names.
This class does not use generics to provide better source compatibility.
No-operation implementation of Logger used by NOPLoggerRepository.
No-operation implementation of LoggerRepository which is used when LogManager.repositorySelector is erroneously
nulled during class reloading.
A NullAppender never outputs a message to any device.
Build a Null Appender
An always-empty Enumerator.
Converts objects to Strings.
A convenience class to convert property values to specific types.
Log4j 1 Interface for dealing with configuration.
Parses DOM and properties.
PatternConverter is an abtract class that provides the
formatting functionality that derived classes need.
Build a Pattern Layout
Most of the work of the
PatternLayout class is delegated to the PatternParser class.Refrain from using this class directly, use
the
Level class instead.Constructs a configuration based on Log4j 1 properties.
Configures Log4j from a log4j 1 format properties file.
Configures Log4j from properties.
This policy rewrites events by adding
a user-specified list of properties to the event.
General purpose Object property setter.
Thrown when an error is encountered whilst attempting to set a property
using the
PropertySetter utility class.QuietWriter does not throw exceptions when things go
wrong.
Formats a
Date by printing the number of milliseconds elapsed since construction of the format.Implements object rendering for Log4j 1.x compatibility.
Map class objects to an
ObjectRenderer.The
LogManager uses one (and only one) RepositorySelector implementation to select the
LoggerRepository for a particular application context.Build an Asynch Appender
This interface is implemented to provide a rewrite
strategy for RewriteAppender.
Binds a Log4j 1.x RewritePolicy to Log4j 2.
Define a RewritePolicy Builder.
Binds a Log4j 2 RewritePolicy to Log4j 1.
RollingFileAppender extends FileAppender to backup the log files when they reach a certain size.
Build a File Appender
RootLogger sits at the top of the logger hierarchy.
Simple-layout.
Build a Pattern Layout
Build a Console Appender
Simple filter based on string matching.
Build a String match filter.
Build a File Appender
Log4j's internal representation of throwables.
Implemented by classes that render instances of java.lang.Throwable (exceptions and errors) into a string
representation.
Implemented by logger repositories that support configurable rendering of Throwables.
Implementors decide when to perform an appender specific action.
Build a Pattern Layout
When implemented by an object configured by DOMConfigurator,
the handle method will be called when an unrecognized child
element is encountered.
An extension of the Level class that provides support for java.util.logging Levels.
Appends logging events to a vector.
WriterAppender appends log events to a
Writer or an
OutputStream depending on the user's choice.Class Description goes here.
Constructs a Configuration usable in Log4j 2 from a Log4j 1 configuration file.
Build an XML Layout
AtomicReference.