|
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.classic.LoggerContext
public class LoggerContext
LoggerContext glues many of the logback-classic components together. In principle,
every logback-classic component instance is attached either directly or indirecty
to a LoggerContext instance. Just as importantly LoggerContext implements the
ILoggerFactory acting as the manufacturing source of Logger
instances.
| Field Summary | |
|---|---|
static String |
ROOT_NAME
|
| Constructor Summary | |
|---|---|
LoggerContext()
|
|
| Methods inherited from class ch.qos.logback.core.ContextBase |
|---|
getName, getObject, getProperty, getPropertyMap, getStatusManager, putObject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ROOT_NAME
| Constructor Detail |
|---|
public LoggerContext()
| Method Detail |
|---|
public void setProperty(String key,
String val)
Context
setProperty in interface ContextsetProperty in class ContextBasepublic void setName(String name)
Context
setName in interface ContextsetName in class ContextBasepublic final Logger getLogger(Class clazz)
public final Logger getLogger(String name)
getLogger in interface ILoggerFactorypublic Logger exists(String name)
null.
name - the name of the logger to search for.public List<Logger> getLoggerList()
public LoggerContextRemoteView getLoggerContextRemoteView()
public void shutdownAndReset()
public void addTurboFilter(TurboFilter newFilter)
TurboFilterAttachable
addTurboFilter in interface TurboFilterAttachablepublic void clearAllTurboFilters()
clearAllTurboFilters in interface TurboFilterAttachable
public final FilterReply getTurboFilterChainDecision(Marker marker,
Logger logger,
Level level,
String format,
Object[] params,
Throwable t)
TurboFilterAttachable
getTurboFilterChainDecision in interface TurboFilterAttachable
public final FilterReply getTurboFilterChainDecision(Marker marker,
Logger logger,
Level level,
String format,
Object param,
Throwable t)
public final FilterReply getTurboFilterChainDecision(Marker marker,
Logger logger,
Level level,
String format,
Object param1,
Object param2,
Throwable t)
public TurboFilter getFirstTurboFilter()
TurboFilterAttachable
getFirstTurboFilter in interface TurboFilterAttachablepublic void addListener(ContextListener listener)
public void removeListener(ContextListener listener)
public boolean isStarted()
isStarted in interface LifeCyclepublic void start()
start in interface LifeCyclepublic void stop()
stop in interface LifeCycle
|
Logback API Version 0.9.8 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||