Package | Description |
---|---|
org.apache.logging.log4j.core |
Implementation of Log4j 2.
|
org.apache.logging.log4j.core.appender |
Log4j 2 Appenders.
|
org.apache.logging.log4j.core.appender.db |
The classes in this package and sub packages provide appenders for various types of databases and methods for
accessing databases.
|
org.apache.logging.log4j.core.appender.db.jdbc |
The JDBC Appender supports writing log events to a relational database using standard JDBC connections.
|
org.apache.logging.log4j.core.appender.db.jpa |
The JPA Appender supports writing log events to a relational database using the Java Persistence API.
|
org.apache.logging.log4j.core.appender.mom |
Message oriented middleware appenders.
|
org.apache.logging.log4j.core.appender.rewrite |
Apache Flume Appender.
|
org.apache.logging.log4j.core.appender.routing |
Apache Flume Appender.
|
org.apache.logging.log4j.core.config |
Configuration of Log4j 2.
|
org.apache.logging.log4j.core.jmx |
Log4j 2 JMX support.
|
Modifier and Type | Method and Description |
---|---|
Map<String,Appender> |
Logger.getAppenders()
This method is not exposed through the public API and is used primarily for unit testing.
|
Modifier and Type | Method and Description |
---|---|
void |
Logger.addAppender(Appender appender)
This method is not exposed through the public API and is used primarily for unit testing.
|
void |
Logger.removeAppender(Appender appender)
This method is not exposed through the public API and is used primarily for unit testing.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractAppender
Abstract base class for Appenders.
|
class |
AbstractOutputStreamAppender<M extends OutputStreamManager>
Appends log events as bytes to a byte output stream.
|
class |
AsyncAppender
Appends to one or more Appenders asynchronously.
|
class |
ConsoleAppender
ConsoleAppender appends log events to
System.out or
System.err using a layout specified by the user. |
class |
FailoverAppender
The FailoverAppender will capture exceptions in an Appender and then route the event
to a different appender.
|
class |
FileAppender
File Appender.
|
class |
MemoryMappedFileAppender
Memory Mapped File Appender.
|
class |
RandomAccessFileAppender
File Appender.
|
class |
RollingFileAppender
An appender that writes to files and can roll over at intervals.
|
class |
RollingRandomAccessFileAppender
An appender that writes to random access files and can roll over at
intervals.
|
class |
SmtpAppender
Send an e-mail when a specific logging event occurs, typically on errors or
fatal errors.
|
class |
SocketAppender
An Appender that delivers events over socket connections.
|
class |
SyslogAppender
The Syslog Appender.
|
Constructor and Description |
---|
DefaultErrorHandler(Appender appender) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractDatabaseAppender<T extends AbstractDatabaseManager>
An abstract Appender for writing events to a database of some type, be it relational or NoSQL.
|
Modifier and Type | Class and Description |
---|---|
class |
JdbcAppender
This Appender writes logging events to a relational database using standard JDBC mechanisms.
|
Modifier and Type | Class and Description |
---|---|
class |
JpaAppender
This Appender writes logging events to a relational database using the Java Persistence API.
|
Modifier and Type | Class and Description |
---|---|
class |
JmsAppender
Generic JMS Appender plugin for both queues and topics.
|
Modifier and Type | Class and Description |
---|---|
class |
RewriteAppender
This Appender allows the logging event to be manipulated before it is processed by other Appenders.
|
Modifier and Type | Class and Description |
---|---|
class |
RoutingAppender
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.
|
Modifier and Type | Method and Description |
---|---|
Appender |
AppenderControl.getAppender()
Returns the Appender.
|
Appender |
AbstractConfiguration.getAppender(String name)
Returns the Appender with the specified name.
|
Appender |
Configuration.getAppender(String name)
Returns the Appender with the specified name.
|
Modifier and Type | Method and Description |
---|---|
static ConcurrentMap<String,Appender> |
AppendersPlugin.createAppenders(Appender[] appenders)
Create a Map of the Appenders.
|
Map<String,Appender> |
LoggerConfig.getAppenders()
Returns all Appenders as a Map.
|
Map<String,Appender> |
AbstractConfiguration.getAppenders()
Returns a Map containing all the Appenders and their name.
|
Map<String,Appender> |
Configuration.getAppenders()
Returns a Map containing all the Appenders and their name.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractConfiguration.addAppender(Appender appender)
Adds an Appender to the configuration.
|
void |
Configuration.addAppender(Appender appender) |
void |
LoggerConfig.addAppender(Appender appender,
org.apache.logging.log4j.Level level,
Filter filter)
Adds an Appender to the LoggerConfig.
|
void |
AbstractConfiguration.addLoggerAppender(Logger logger,
Appender appender)
Associates an Appender with a LoggerConfig.
|
void |
Configuration.addLoggerAppender(Logger logger,
Appender appender) |
static ConcurrentMap<String,Appender> |
AppendersPlugin.createAppenders(Appender[] appenders)
Create a Map of the Appenders.
|
Constructor and Description |
---|
AppenderControl(Appender appender,
org.apache.logging.log4j.Level level,
Filter filter)
Constructor.
|
Constructor and Description |
---|
AppenderAdmin(String contextName,
Appender appender)
Constructs a new
AppenderAdmin with the specified contextName
and appender. |
Copyright © 1999-2021 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.