java.lang.Object
ch.qos.logback.core.ContextBase
ch.qos.logback.access.common.spi.AccessContext
- All Implemented Interfaces:
ch.qos.logback.core.Context
,ch.qos.logback.core.spi.AppenderAttachable<IAccessEvent>
,ch.qos.logback.core.spi.FilterAttachable<IAccessEvent>
,ch.qos.logback.core.spi.LifeCycle
,ch.qos.logback.core.spi.PropertyContainer
public class AccessContext
extends ch.qos.logback.core.ContextBase
implements ch.qos.logback.core.spi.AppenderAttachable<IAccessEvent>, ch.qos.logback.core.spi.FilterAttachable<IAccessEvent>
A minimal context implementation used by certain logback-access components,
mainly SocketServer.
- Author:
- Sébastien Pennec
-
Field Summary
Fields inherited from class ch.qos.logback.core.ContextBase
configurationLock, scheduledFutures
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAppender
(ch.qos.logback.core.Appender<IAccessEvent> newAppender) void
addFilter
(ch.qos.logback.core.filter.Filter<IAccessEvent> newFilter) void
callAppenders
(IAccessEvent event) void
void
boolean
detachAppender
(ch.qos.logback.core.Appender<IAccessEvent> appender) boolean
detachAppender
(String name) ch.qos.logback.core.Appender
<IAccessEvent> getAppender
(String name) List
<ch.qos.logback.core.filter.Filter<IAccessEvent>> ch.qos.logback.core.spi.FilterReply
boolean
isAttached
(ch.qos.logback.core.Appender<IAccessEvent> appender) Iterator
<ch.qos.logback.core.Appender<IAccessEvent>> Methods inherited from class ch.qos.logback.core.ContextBase
addConfigurationEventListener, addScheduledFuture, addSubstitutionProperty, fireConfigurationEvent, getAlternateExecutorService, getBirthTime, getConfigurationLock, getCopyOfPropertyMap, getCopyOfScheduledFutures, getExecutorService, getName, getObject, getProperty, getScheduledExecutorService, getScheduledFutures, getSequenceNumberGenerator, getStatusManager, initCollisionMaps, isStarted, putObject, putProperty, register, removeConfigurationEventListener, removeObject, reset, setName, setSequenceNumberGenerator, setStatusManager, start, stop, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.qos.logback.core.spi.PropertyContainer
addSubstitutionProperties
-
Constructor Details
-
AccessContext
public AccessContext()
-
-
Method Details
-
callAppenders
-
addAppender
- Specified by:
addAppender
in interfacech.qos.logback.core.spi.AppenderAttachable<IAccessEvent>
-
detachAndStopAllAppenders
- Specified by:
detachAndStopAllAppenders
in interfacech.qos.logback.core.spi.AppenderAttachable<IAccessEvent>
-
detachAppender
- Specified by:
detachAppender
in interfacech.qos.logback.core.spi.AppenderAttachable<IAccessEvent>
-
detachAppender
- Specified by:
detachAppender
in interfacech.qos.logback.core.spi.AppenderAttachable<IAccessEvent>
-
getAppender
- Specified by:
getAppender
in interfacech.qos.logback.core.spi.AppenderAttachable<IAccessEvent>
-
isAttached
- Specified by:
isAttached
in interfacech.qos.logback.core.spi.AppenderAttachable<IAccessEvent>
-
iteratorForAppenders
- Specified by:
iteratorForAppenders
in interfacech.qos.logback.core.spi.AppenderAttachable<IAccessEvent>
-
addFilter
- Specified by:
addFilter
in interfacech.qos.logback.core.spi.FilterAttachable<IAccessEvent>
-
clearAllFilters
- Specified by:
clearAllFilters
in interfacech.qos.logback.core.spi.FilterAttachable<IAccessEvent>
-
getCopyOfAttachedFiltersList
- Specified by:
getCopyOfAttachedFiltersList
in interfacech.qos.logback.core.spi.FilterAttachable<IAccessEvent>
-
getFilterChainDecision
- Specified by:
getFilterChainDecision
in interfacech.qos.logback.core.spi.FilterAttachable<IAccessEvent>
-