Class JpaAppender

    • Method Detail

      • createAppender

        @PluginFactory
        public static JpaAppender createAppender​(@PluginAttribute("name")
                                                 java.lang.String name,
                                                 @PluginAttribute("ignoreExceptions")
                                                 java.lang.String ignore,
                                                 @PluginElement("Filter")
                                                 Filter filter,
                                                 @PluginAttribute("bufferSize")
                                                 java.lang.String bufferSize,
                                                 @PluginAttribute("entityClassName")
                                                 java.lang.String entityClassName,
                                                 @PluginAttribute("persistenceUnitName")
                                                 java.lang.String persistenceUnitName)
        Factory method for creating a JPA appender within the plugin manager.
        Parameters:
        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.
        Returns:
        a new JPA appender.