All Implemented Interfaces:
Appender, Filterable, LocationAware, LifeCycle, LifeCycle2

@Plugin(name="JDBC", category="Core", elementType="appender", printObject=true) public final class JdbcAppender extends AbstractDatabaseAppender<JdbcDatabaseManager>
This Appender writes logging events to a relational database using standard JDBC mechanisms. It takes a list of ColumnConfigs and/or ColumnMappings with which it determines how to save the event data into the appropriate columns in the table. ColumnMapping is new as of Log4j 2.8 and supports type conversion and persistence using PreparedStatement.setObject(int, Object). A ConnectionSource plugin instance instructs the appender (and JdbcDatabaseManager) how to connect to the database. This appender can be reconfigured at run time.
See Also: