ch.qos.logback.classic.db
Class DBAppender
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.AppenderBase<E>
ch.qos.logback.core.db.DBAppenderBase<LoggingEvent>
ch.qos.logback.classic.db.DBAppender
- All Implemented Interfaces:
- Appender<LoggingEvent>, ContextAware, FilterAttachable, LifeCycle
public class DBAppender
- extends DBAppenderBase<LoggingEvent>
The DBAppender inserts logging events into three database tables in a format
independent of the Java programming language.
For more information about this appender, please refer to the online manual at
http://logback.qos.ch/manual/appenders.html#DBAppender
- Author:
- Ceki Gülcü, Ray DeCampo, Sébastien Pennec
Methods inherited from class ch.qos.logback.core.AppenderBase |
addFilter, clearAllFilters, doAppend, getFilterChainDecision, getFirstFilter, getLayout, getName, isStarted, setLayout, setName, toString |
insertPropertiesSQL
protected final String insertPropertiesSQL
- See Also:
- Constant Field Values
insertExceptionSQL
protected final String insertExceptionSQL
- See Also:
- Constant Field Values
insertSQL
protected static final String insertSQL
GET_GENERATED_KEYS_METHOD
protected static final Method GET_GENERATED_KEYS_METHOD
DBAppender
public DBAppender()
subAppend
protected void subAppend(Object eventObject,
Connection connection,
PreparedStatement insertStatement)
throws Throwable
- Specified by:
subAppend
in class DBAppenderBase<LoggingEvent>
- Throws:
Throwable
getGeneratedKeysMethod
protected Method getGeneratedKeysMethod()
- Specified by:
getGeneratedKeysMethod
in class DBAppenderBase<LoggingEvent>
getInsertSQL
protected String getInsertSQL()
- Specified by:
getInsertSQL
in class DBAppenderBase<LoggingEvent>
insertProperties
protected void insertProperties(Map<String,String> mergedMap,
Connection connection,
int eventId)
throws SQLException
- Throws:
SQLException
insertThrowable
protected void insertThrowable(String[] strRep,
Connection connection,
int eventId)
throws SQLException
- Throws:
SQLException
Copyright © 2005-2008 QOS.ch. All Rights Reserved.