|
Logback API Version 0.9.8 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.qos.logback.core.ContextBase
ch.qos.logback.access.spi.BasicContext
public class BasicContext
This class is a context that can be used by access to provide the basic functionnalities of a context to its components, mainly SocketServer.
| Constructor Summary | |
|---|---|
BasicContext()
|
|
| Method Summary | |
|---|---|
void |
addAppender(Appender<AccessEvent> newAppender)
Add an appender. |
void |
addFilter(Filter newFilter)
Add a filter. |
void |
callAppenders(AccessEvent event)
|
void |
clearAllFilters()
|
void |
detachAndStopAllAppenders()
Detach all previously added appenders. |
boolean |
detachAppender(Appender appender)
Detach the appender passed as parameter from the list of appenders. |
Appender<AccessEvent> |
detachAppender(String name)
Detach the appender with the name passed as parameter from the list of appenders. |
Appender<AccessEvent> |
getAppender(String name)
Get an appender by name. |
FilterReply |
getFilterChainDecision(Object event)
Loop through the filters in the chain. |
Filter |
getFirstFilter()
Get first filter in the chain. |
boolean |
isAttached(Appender appender)
Returns true if the specified appender is in list of
attached attached, false otherwise. |
Iterator |
iteratorForAppenders()
Get an iterator for appenders contained in the parent object. |
| Methods inherited from class ch.qos.logback.core.ContextBase |
|---|
getName, getObject, getProperty, getPropertyMap, getStatusManager, putObject, setName, setProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicContext()
| Method Detail |
|---|
public void callAppenders(AccessEvent event)
public void addAppender(Appender<AccessEvent> newAppender)
AppenderAttachable
addAppender in interface AppenderAttachable<AccessEvent>public void detachAndStopAllAppenders()
AppenderAttachable
detachAndStopAllAppenders in interface AppenderAttachable<AccessEvent>public boolean detachAppender(Appender appender)
AppenderAttachable
detachAppender in interface AppenderAttachable<AccessEvent>public Appender<AccessEvent> detachAppender(String name)
AppenderAttachable
detachAppender in interface AppenderAttachable<AccessEvent>public Appender<AccessEvent> getAppender(String name)
AppenderAttachable
getAppender in interface AppenderAttachable<AccessEvent>public boolean isAttached(Appender appender)
AppenderAttachabletrue if the specified appender is in list of
attached attached, false otherwise.
isAttached in interface AppenderAttachable<AccessEvent>public Iterator iteratorForAppenders()
AppenderAttachable
iteratorForAppenders in interface AppenderAttachable<AccessEvent>public void addFilter(Filter newFilter)
FilterAttachable
addFilter in interface FilterAttachablepublic void clearAllFilters()
clearAllFilters in interface FilterAttachablepublic FilterReply getFilterChainDecision(Object event)
FilterAttachable
getFilterChainDecision in interface FilterAttachablepublic Filter getFirstFilter()
FilterAttachable
getFirstFilter in interface FilterAttachable
|
Logback API Version 0.9.8 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||