Appender, Filterable, LifeCycle, LifeCycle2@Plugin(name="JPA", category="Core", elementType="appender", printObject=true) public final class JpaAppender extends AbstractDatabaseAppender<JpaDatabaseManager>
AbstractLogEventWrapperEntity class decorated with JPA annotations.AbstractLogEventWrapperEntityAbstractAppender.Builder<B extends AbstractAppender.Builder<B>>LifeCycle.StateDEFAULT_STOP_TIMEOUT, DEFAULT_STOP_TIMEUNIT, LOGGERELEMENT_TYPE| Modifier and Type | Method | Description |
|---|---|---|
static JpaAppender |
createAppender(String name,
String ignore,
Filter filter,
String bufferSize,
String entityClassName,
String persistenceUnitName) |
Factory method for creating a JPA appender within the plugin manager.
|
String |
toString() |
error, error, error, getHandler, getName, ignoreExceptions, parseInt, setHandlerappend, getLayout, getManager, replaceManager, start, stopaddFilter, getFilter, hasFilter, isFiltered, removeFilter, stopequalsImpl, getState, getStatusLogger, hashCodeImpl, initialize, isInitialized, isStarted, isStarting, isStopped, isStopping, setStarted, setStarting, setState, setStopped, setStopping, stop, stoppublic String toString()
toString in class AbstractAppender@PluginFactory public static JpaAppender createAppender(@PluginAttribute("name") String name, @PluginAttribute("ignoreExceptions") String ignore, @PluginElement("Filter") Filter filter, @PluginAttribute("bufferSize") String bufferSize, @PluginAttribute("entityClassName") String entityClassName, @PluginAttribute("persistenceUnitName") String persistenceUnitName)
name - The name of the appender.ignore - If "true" (default) exceptions encountered when appending events are logged; otherwise
they are propagated to the caller.filter - The filter, if any, to use.bufferSize - If an integer greater than 0, this causes the appender to buffer log events and flush whenever
the buffer reaches this size.entityClassName - The fully qualified name of the concrete AbstractLogEventWrapperEntity
implementation that has JPA annotations mapping it to a database table.persistenceUnitName - The name of the JPA persistence unit that should be used for persisting log events.Copyright © 1999-2018. 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.