Class DBAppender

    • Field Detail

      • insertPropertiesSQL

        protected java.lang.String insertPropertiesSQL
      • insertExceptionSQL

        protected java.lang.String insertExceptionSQL
      • insertSQL

        protected java.lang.String insertSQL
      • GET_GENERATED_KEYS_METHOD

        protected static final java.lang.reflect.Method GET_GENERATED_KEYS_METHOD
    • Constructor Detail

      • DBAppender

        public DBAppender()
    • Method Detail

      • setDbNameResolver

        public void setDbNameResolver​(DBNameResolver dbNameResolver)
      • subAppend

        protected void subAppend​(ILoggingEvent event,
                                 java.sql.Connection connection,
                                 java.sql.PreparedStatement insertStatement)
                          throws java.lang.Throwable
        Specified by:
        subAppend in class DBAppenderBase<ILoggingEvent>
        Throws:
        java.lang.Throwable
      • insertProperties

        protected void insertProperties​(java.util.Map<java.lang.String,​java.lang.String> mergedMap,
                                        java.sql.Connection connection,
                                        long eventId)
                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • insertThrowable

        protected void insertThrowable​(IThrowableProxy tp,
                                       java.sql.Connection connection,
                                       long eventId)
                                throws java.sql.SQLException
        Throws:
        java.sql.SQLException