Package | Description |
---|---|
org.apache.logging.log4j.core.appender.db.jdbc |
The JDBC Appender supports writing log events to a relational database using standard JDBC connections.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractConnectionSource |
class |
AbstractDriverManagerConnectionSource
A
ConnectionSource that uses a JDBC connection string, a user name, and a password to call
DriverManager.getConnection(String, String, String) . |
class |
DataSourceConnectionSource
A
JdbcAppender connection source that uses a DataSource to connect to the database. |
class |
DriverManagerConnectionSource
A
ConnectionSource that uses a JDBC connection string, a user name, and a password to call
DriverManager.getConnection(String, String, String) . |
class |
FactoryMethodConnectionSource
A
JdbcAppender connection source that uses a public static factory method to obtain a Connection or
DataSource . |
Modifier and Type | Method and Description |
---|---|
ConnectionSource |
JdbcDatabaseManager.getConnectionSource() |
Modifier and Type | Method and Description |
---|---|
static <B extends JdbcAppender.Builder<B>> |
JdbcAppender.createAppender(String name,
String ignore,
Filter filter,
ConnectionSource connectionSource,
String bufferSize,
String tableName,
ColumnConfig[] columnConfigs)
Deprecated.
|
static JdbcDatabaseManager |
JdbcDatabaseManager.getJDBCDatabaseManager(String name,
int bufferSize,
ConnectionSource connectionSource,
String tableName,
ColumnConfig[] columnConfigs)
|
static JdbcDatabaseManager |
JdbcDatabaseManager.getManager(String name,
int bufferSize,
Layout<? extends Serializable> layout,
ConnectionSource connectionSource,
String tableName,
ColumnConfig[] columnConfigs,
ColumnMapping[] columnMappings)
Deprecated.
|
static JdbcDatabaseManager |
JdbcDatabaseManager.getManager(String name,
int bufferSize,
Layout<? extends Serializable> layout,
ConnectionSource connectionSource,
String tableName,
ColumnConfig[] columnConfigs,
ColumnMapping[] columnMappings,
boolean immediateFail,
long reconnectIntervalMillis)
|
static JdbcDatabaseManager |
JdbcDatabaseManager.getManager(String name,
int bufferSize,
Layout<? extends Serializable> layout,
ConnectionSource connectionSource,
String tableName,
ColumnConfig[] columnConfigs,
ColumnMapping[] columnMappings,
boolean immediateFail,
long reconnectIntervalMillis,
boolean truncateStrings)
Creates a JDBC manager for use within the
JdbcAppender , or returns a suitable one if it already exists. |
B |
JdbcAppender.Builder.setConnectionSource(ConnectionSource connectionSource)
The connections source from which database connections should be retrieved.
|
Copyright © 1999-2023 The 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.