Uses of Interface
org.apache.logging.log4j.core.LifeCycle2
Package
Description
Implementation of Log4j 2.
Log4j 2 Appenders.
The classes in this package and sub packages provide appenders for various types of databases and methods for
accessing databases.
The JDBC Appender supports writing log events to a relational database using standard JDBC connections.
Message oriented middleware appenders.
Classes and interfaces for ZeroMQ/JeroMQ support.
Classes and interfaces for Kafka appender support.
The NoSQL Appender supports writing log events to NoSQL databases.
Apache Flume Appender.
Rolling File Appender and support classes.
Apache Flume Appender.
Provides Asynchronous Logger classes and interfaces for low-latency logging.
Configuration of Log4j 2.
Configuration Builder Implementation.
Support for composite configurations.
Classes and interfaces supporting configuration of Log4j 2 with JSON.
Configuration using Properties files.
Classes and interfaces supporting configuration of Log4j 2 with XML.
Classes and interfaces supporting configuration of Log4j 2 with YAML.
Log4j 2 Filter support.
Log4j 2 helper classes.
-
Uses of LifeCycle2 in org.apache.logging.log4j.core
Modifier and TypeClassDescriptionclass
A life cycle to be extended.class
The LoggerContext is the anchor for the logging system. -
Uses of LifeCycle2 in org.apache.logging.log4j.core.appender
Modifier and TypeClassDescriptionclass
Abstract base class for Appenders.class
AbstractFileAppender<M extends OutputStreamManager>
Abstract File Appender.class
AbstractOutputStreamAppender<M extends OutputStreamManager>
Appends log events as bytes to a byte output stream.class
AbstractWriterAppender<M extends WriterManager>
Appends log events as strings to a writer.final class
Appends to one or more Appenders asynchronously.final class
Appends log events toSystem.out
orSystem.err
using a layout specified by the user.class
No-Operation Appender that counts events.final class
The FailoverAppender will capture exceptions in an Appender and then route the event to a different appender.final class
File Appender.final class
Sends log events over HTTP.final class
Memory Mapped File Appender.class
An Appender that ignores log events.final class
Appends log events to a given output stream using a layout.final class
File Appender.final class
An appender that writes to files and can roll over at intervals.final class
An appender that writes to random access files and can roll over at intervals.class
final class
Send an e-mail when a specific logging event occurs, typically on errors or fatal errors.class
An Appender that delivers events over socket connections.class
The Syslog Appender.final class
Appends log events to aWriter
. -
Uses of LifeCycle2 in org.apache.logging.log4j.core.appender.db
Modifier and TypeClassDescriptionclass
AbstractDatabaseAppender<T extends AbstractDatabaseManager>
An abstract Appender for writing events to a database of some type, be it relational or NoSQL. -
Uses of LifeCycle2 in org.apache.logging.log4j.core.appender.db.jdbc
Modifier and TypeClassDescriptionclass
class
AConnectionSource
that uses a JDBC connection string, a user name, and a password to callDriverManager.getConnection(String, String, String)
.final class
AJdbcAppender
connection source that uses aDataSource
to connect to the database.class
AConnectionSource
that uses a JDBC connection string, a user name, and a password to callDriverManager.getConnection(String, String, String)
.final class
AJdbcAppender
connection source that uses a public static factory method to obtain aConnection
orDataSource
.final class
This Appender writes logging events to a relational database using standard JDBC mechanisms. -
Uses of LifeCycle2 in org.apache.logging.log4j.core.appender.mom
Modifier and TypeClassDescriptionclass
Generic JMS Appender plugin for both queues and topics. -
Uses of LifeCycle2 in org.apache.logging.log4j.core.appender.mom.jeromq
Modifier and TypeClassDescriptionfinal class
Sends log events to one or more ZeroMQ (JeroMQ) endpoints. -
Uses of LifeCycle2 in org.apache.logging.log4j.core.appender.mom.kafka
Modifier and TypeClassDescriptionfinal class
Sends log events to an Apache Kafka topic. -
Uses of LifeCycle2 in org.apache.logging.log4j.core.appender.nosql
Modifier and TypeClassDescriptionfinal class
This Appender writes logging events to a NoSQL database using a configured NoSQL provider. -
Uses of LifeCycle2 in org.apache.logging.log4j.core.appender.rewrite
Modifier and TypeClassDescriptionfinal class
This Appender allows the logging event to be manipulated before it is processed by other Appenders. -
Uses of LifeCycle2 in org.apache.logging.log4j.core.appender.rolling
Modifier and TypeClassDescriptionclass
Abstract convenience class for triggering policies that extendAbstractLifeCycle
and implementTriggeringPolicy
.final class
Triggering policy that wraps other triggering policies.final class
Rolls a file over based on a cron schedule.class
class
Triggers a rollover on every restart, but only if the file size is greater than zero.class
final class
Rolls a file over based on time. -
Uses of LifeCycle2 in org.apache.logging.log4j.core.appender.routing
Modifier and TypeClassDescriptionclass
Policy is purging appenders that were not in use specified time in minutesfinal class
This Appender "routes" between various Appenders, some of which can be references to Appenders defined earlier in the configuration while others can be dynamically created within this Appender as required. -
Uses of LifeCycle2 in org.apache.logging.log4j.core.async
Modifier and TypeClassDescriptionclass
Asynchronous Logger object that is created via configuration and can be combined with synchronous loggers.static class
An asynchronous root Logger.class
Helper class decoupling theAsyncLoggerConfig
class from the LMAX Disruptor library.class
LoggerContext
that createsAsyncLogger
objects. -
Uses of LifeCycle2 in org.apache.logging.log4j.core.config
Modifier and TypeClassDescriptionclass
The base Configuration.class
Wraps anAppender
with details an appender implementation shouldn't need to know about.class
class
The default configuration writes all output to the Console using the default logging level.class
Logger object that is created via configuration.static class
The root Logger.class
This configuration defaults to no logging. -
Uses of LifeCycle2 in org.apache.logging.log4j.core.config.builder.impl
Modifier and TypeClassDescriptionclass
This is the general version of the Configuration created by the Builder. -
Uses of LifeCycle2 in org.apache.logging.log4j.core.config.composite
-
Uses of LifeCycle2 in org.apache.logging.log4j.core.config.json
Modifier and TypeClassDescriptionclass
Creates a Node hierarchy from a JSON file. -
Uses of LifeCycle2 in org.apache.logging.log4j.core.config.properties
Modifier and TypeClassDescriptionclass
Configuration created from a properties file. -
Uses of LifeCycle2 in org.apache.logging.log4j.core.config.xml
Modifier and TypeClassDescriptionclass
Creates a Node hierarchy from an XML file. -
Uses of LifeCycle2 in org.apache.logging.log4j.core.config.yaml
-
Uses of LifeCycle2 in org.apache.logging.log4j.core.filter
Modifier and TypeClassDescriptionclass
Users should extend this class to implement filters.class
Enhances a Class by allowing it to contain Filters.final class
TheBurstFilter
is a logging filter that regulates logging traffic.final class
Composes and invokes one or more filters.final class
This filter causes all logging events to be dropped.final class
Compares against a log level that is associated with a context value.final class
This filter returns the onMatch result if the logging level in the event matches the specified logging level exactly.final class
This filter returns theAbstractFilter.onMatch
result if the level of theLogEvent
is in the range of the configuredLevelRangeFilter.minLevel
andLevelRangeFilter.maxLevel
values, otherwise it returns theAbstractFilter.onMismatch
result.class
A Filter that operates on a Map.final class
This filter returns the onMatch result if the marker in the LogEvent is the same as or has the configured marker as a parent.class
Filter based on a value in the Thread Context Map (MDC).final class
This filter returns the onMatch result if there is no marker in the LogEvent.final class
A filter that matches the given regular expression pattern against messages.final class
Returns the onMatch result if the script returns True and returns the onMismatch value otherwise.final class
This filter returns the onMatch result if the logging level in the event matches the specified logging level exactly.final class
Filter based on data in a StructuredDataMessage.class
Filter based on a value in the Thread Context Map (MDC).final class
This filter returns the onMatch result if the level in the LogEvent is the same or more specific than the configured level and the onMismatch value otherwise.final class
Filters events that fall within a specified time period in each day. -
Uses of LifeCycle2 in org.apache.logging.log4j.core.util
Modifier and TypeClassDescriptionclass
ShutdownRegistrationStrategy that simply usesRuntime.addShutdownHook(Thread)
.class
ManagesFileWatcher
s.