Package org.apache.logging.log4j.core.appender.db.jdbc
@Export
@Version("2.20.1")
package org.apache.logging.log4j.core.appender.db.jdbc
The JDBC Appender supports writing log events to a relational database using standard JDBC connections. You will need
a JDBC driver on your classpath for the database you wish to log to.
-
ClassDescriptionA
ConnectionSource
that uses a JDBC connection string, a user name, and a password to callDriverManager.getConnection(String, String, String)
.AbstractDriverManagerConnectionSource.Builder<B extends AbstractDriverManagerConnectionSource.Builder<B>>Builds DriverManagerConnectionSource instances.A configuration element used to configure which event properties are logged to which columns in the database table.Configuration element forJdbcAppender
.AJdbcAppender
connection source that uses aDataSource
to connect to the database.AConnectionSource
that uses a JDBC connection string, a user name, and a password to callDriverManager.getConnection(String, String, String)
.Builds DriverManagerConnectionSource instances.AJdbcAppender
connection source that uses a public static factory method to obtain aConnection
orDataSource
.This Appender writes logging events to a relational database using standard JDBC mechanisms.JdbcAppender.Builder<B extends JdbcAppender.Builder<B>>AnAbstractDatabaseManager
implementation for relational databases accessed via JDBC.