public class DBAppender extends ch.qos.logback.core.db.DBAppenderBase<ILoggingEvent>
| Modifier and Type | Field and Description |
|---|---|
protected static Method |
GET_GENERATED_KEYS_METHOD |
protected String |
insertExceptionSQL |
protected String |
insertPropertiesSQL |
protected String |
insertSQL |
| Constructor and Description |
|---|
DBAppender() |
| Modifier and Type | Method and Description |
|---|---|
protected Method |
getGeneratedKeysMethod() |
protected String |
getInsertSQL() |
protected void |
insertProperties(Map<String,String> mergedMap,
Connection connection,
long eventId) |
protected void |
insertThrowable(IThrowableProxy tp,
Connection connection,
long eventId) |
protected void |
secondarySubAppend(ILoggingEvent event,
Connection connection,
long eventId) |
void |
setDbNameResolver(DBNameResolver dbNameResolver) |
void |
start() |
protected void |
subAppend(ILoggingEvent event,
Connection connection,
PreparedStatement insertStatement) |
append, getConnectionSource, selectEventId, setConnectionSource, stopaddFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, toStringaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextprotected String insertPropertiesSQL
protected String insertExceptionSQL
protected String insertSQL
protected static final Method GET_GENERATED_KEYS_METHOD
public void setDbNameResolver(DBNameResolver dbNameResolver)
public void start()
start in interface ch.qos.logback.core.spi.LifeCyclestart in class ch.qos.logback.core.db.DBAppenderBase<ILoggingEvent>protected void subAppend(ILoggingEvent event, Connection connection, PreparedStatement insertStatement) throws Throwable
subAppend in class ch.qos.logback.core.db.DBAppenderBase<ILoggingEvent>Throwableprotected void secondarySubAppend(ILoggingEvent event, Connection connection, long eventId) throws Throwable
secondarySubAppend in class ch.qos.logback.core.db.DBAppenderBase<ILoggingEvent>Throwableprotected Method getGeneratedKeysMethod()
getGeneratedKeysMethod in class ch.qos.logback.core.db.DBAppenderBase<ILoggingEvent>protected String getInsertSQL()
getInsertSQL in class ch.qos.logback.core.db.DBAppenderBase<ILoggingEvent>protected void insertProperties(Map<String,String> mergedMap, Connection connection, long eventId) throws SQLException
SQLExceptionprotected void insertThrowable(IThrowableProxy tp, Connection connection, long eventId) throws SQLException
SQLExceptionCopyright © 2015. All rights reserved.