Package org.apache.logging.log4j
@Export
@Version("2.20.2")
package org.apache.logging.log4j
Public API for Log4j 2.
The main entry point into Log4j is the LogManager
class which can be used to
obtain Logger
objects, the current
LoggerContext
, a new LoggerContext
, and the current
LoggerContextFactory
.
Marker
objects can be obtained through the
MarkerManager
. The MDC (Mapped Diagnostic Context) can be
used through the ThreadContext
class.
- See Also:
-
ClassDescriptionExtended interface to allow bridges between logging systems to convey the correct location information.Adds entries to the
stack or map
and them removes them when the object is closed, e.g.Deprecated.Deprecated since 2.24.0.Levels used for identifying the severity of an event.Interface for constructing log events before logging them.This is the central interface in the log4j package.Exception thrown when an error occurs while logging.The anchor point for the Log4j logging system.Markers are objects that are used to add easily filterable information to log messages.Applications create Markers by using the Marker Manager.Consider this class private, it is only public to satisfy Jackson for XML and JSON IO.The ThreadContext allows applications to store information either in a Map or a Stack.The ThreadContext Stack interface.