Package ch.qos.logback.classic.db
Class DBAppender
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.UnsynchronizedAppenderBase<E>
-
- ch.qos.logback.core.db.DBAppenderBase<ILoggingEvent>
-
- ch.qos.logback.classic.db.DBAppender
-
- All Implemented Interfaces:
Appender<ILoggingEvent>
,ContextAware
,FilterAttachable<ILoggingEvent>
,LifeCycle
public class DBAppender extends DBAppenderBase<ILoggingEvent>
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
-
-
Constructor Summary
Constructors Constructor Description DBAppender()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setDbNameResolver(DBNameResolver dbNameResolver)
void
start()
-
Methods inherited from class ch.qos.logback.core.db.DBAppenderBase
append, getConnectionSource, setConnectionSource, stop
-
Methods inherited from class ch.qos.logback.core.UnsynchronizedAppenderBase
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, toString
-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContext
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
-
-
-
Method Detail
-
setDbNameResolver
public void setDbNameResolver(DBNameResolver dbNameResolver)
-
start
public void start()
- Specified by:
start
in interfaceLifeCycle
- Overrides:
start
in classDBAppenderBase<ILoggingEvent>
-
-