Package ch.qos.logback.core.db
Class DBAppenderBase<E>
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.UnsynchronizedAppenderBase<E>
-
- ch.qos.logback.core.db.DBAppenderBase<E>
-
- All Implemented Interfaces:
Appender<E>,ContextAware,FilterAttachable<E>,LifeCycle
- Direct Known Subclasses:
DBAppender
public abstract class DBAppenderBase<E> extends UnsynchronizedAppenderBase<E>
-
-
Constructor Summary
Constructors Constructor Description DBAppenderBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappend(E eventObject)ConnectionSourcegetConnectionSource()voidsetConnectionSource(ConnectionSource connectionSource)voidstart()voidstop()-
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
-
start
public void start()
- Specified by:
startin interfaceLifeCycle- Overrides:
startin classUnsynchronizedAppenderBase<E>
-
getConnectionSource
public ConnectionSource getConnectionSource()
- Returns:
- Returns the connectionSource.
-
setConnectionSource
public void setConnectionSource(ConnectionSource connectionSource)
- Parameters:
connectionSource- The connectionSource to set.
-
append
public void append(E eventObject)
-
stop
public void stop()
- Specified by:
stopin interfaceLifeCycle- Overrides:
stopin classUnsynchronizedAppenderBase<E>
-
-