public class DBAppender
extends <any>
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.reflect.Method |
GET_GENERATED_KEYS_METHOD |
protected java.lang.String |
insertExceptionSQL |
protected java.lang.String |
insertPropertiesSQL |
protected java.lang.String |
insertSQL |
| Constructor and Description |
|---|
DBAppender() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.reflect.Method |
getGeneratedKeysMethod() |
protected java.lang.String |
getInsertSQL() |
protected void |
insertProperties(java.util.Map<java.lang.String,java.lang.String> mergedMap,
java.sql.Connection connection,
long eventId) |
protected void |
insertThrowable(IThrowableProxy tp,
java.sql.Connection connection,
long eventId) |
protected void |
secondarySubAppend(ILoggingEvent event,
java.sql.Connection connection,
long eventId) |
void |
setDbNameResolver(DBNameResolver dbNameResolver) |
void |
start() |
protected void |
subAppend(ILoggingEvent event,
java.sql.Connection connection,
java.sql.PreparedStatement insertStatement) |
protected java.lang.String insertPropertiesSQL
protected java.lang.String insertExceptionSQL
protected java.lang.String insertSQL
protected static final java.lang.reflect.Method GET_GENERATED_KEYS_METHOD
public void setDbNameResolver(DBNameResolver dbNameResolver)
public void start()
protected void subAppend(ILoggingEvent event, java.sql.Connection connection, java.sql.PreparedStatement insertStatement) throws java.lang.Throwable
java.lang.Throwableprotected void secondarySubAppend(ILoggingEvent event, java.sql.Connection connection, long eventId) throws java.lang.Throwable
java.lang.Throwableprotected java.lang.reflect.Method getGeneratedKeysMethod()
protected java.lang.String getInsertSQL()
protected void insertProperties(java.util.Map<java.lang.String,java.lang.String> mergedMap,
java.sql.Connection connection,
long eventId)
throws java.sql.SQLException
java.sql.SQLExceptionprotected void insertThrowable(IThrowableProxy tp, java.sql.Connection connection, long eventId) throws java.sql.SQLException
java.sql.SQLException