Package org.apache.logging.log4j.core.appender.db.jpa
@Export
@Open("org.apache.logging.log4j.core")
@Version("2.20.1")
package org.apache.logging.log4j.core.appender.db.jpa
The JPA Appender supports writing log events to a relational database using the Java Persistence API. You will need
a JDBC driver on your classpath for the database you wish to log to. You will also need the Java Persistence API 2.1
and your JPA provider of choice on the class path; these Maven dependencies are optional and will not automatically
be added to your classpath.
-
ClassesClassDescriptionUsers of the JPA appender MUST extend this class, using JPA annotations on the concrete class and all of its accessor methods (as needed) to map them to the proper table and columns.Users of the JPA appender may want to extend this class instead of
AbstractLogEventWrapperEntity
.This Appender writes logging events to a relational database using the Java Persistence API.AnAbstractDatabaseManager
implementation for relational databases accessed via JPA.