See: Description
Interface | Description |
---|---|
ConnectionSource |
The
ConnectionSource interface provides a pluggable means of
transparently obtaining JDBC Connection s for log4j classes
that require the use of a Connection . |
Class | Description |
---|---|
ConnectionSourceSkeleton | |
CustomSQLDBReceiver |
Converts log data stored in a database into LoggingEvents.
|
DataSourceConnectionSource |
The DataSourceConnectionSource is an implementation of
ConnectionSource
that obtains the Connection in the recommended JDBC manner based on
a DataSource . |
DBAppender |
The DBAppender inserts loggin events into three database tables in a format
independent of the Java programming language.
|
DBHelper | |
DBReceiver | |
DriverManagerConnectionSource |
The DriverManagerConnectionSource is an implementation of
ConnectionSource
that obtains the Connection in the traditional JDBC manner based on the
connection URL. |
JNDIConnectionSource |
The
JNDIConnectionSource is an implementation of
ConnectionSource that obtains a DataSource from a
JNDI provider and uses it to obtain a Connection . |
The org.apache.log4j.db package provides means to append logging events
into various databases. The persisted data can be later read back using
DBReceiver
.
Most popular database systems, such as PostgreSQL, MySQL, Oracle, DB2 and MsSQL are supported.
Just as importantly, the way for obtaining JDBC connections is pluggable. Connections can be obtained through the tradinal way of DriverManager, or alternatively as a DataSource. A DataSource can be instantiated directly or it can obtained through JNDI.
Copyright © 2002-2017 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache Chainsaw, Chainsaw, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.