Top Description Fields Constructors Methods
org.slf4j.helpers

public Class SubstituteLoggerFactory

extends Object
implements ILoggerFactory
Class Inheritance
All Implemented Interfaces
org.slf4j.ILoggerFactory
Imports
java.util.ArrayList, .List, .Map, java.util.concurrent.ConcurrentHashMap, .LinkedBlockingQueue, org.slf4j.ILoggerFactory, .Logger, org.slf4j.event.SubstituteLoggingEvent

SubstituteLoggerFactory manages instances of SubstituteLogger.
Authors
Ceki Gülcü, Chetan Mehrotra

Field Summary

Modifier and TypeField and Description
pack-priv final LinkedBlockingQueue<SubstituteLoggingEvent>
pack-priv final Map<String, SubstituteLogger>
pack-priv volatile boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public LinkedBlockingQueue<SubstituteLoggingEvent>
public synchronized Logger
getLogger(String name)

Implements org.slf4j.ILoggerFactory.getLogger.

Return an appropriate Logger instance as specified by the name parameter.

public List<String>
public List<SubstituteLogger>
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

eventQueueback to summary
pack-priv final LinkedBlockingQueue<SubstituteLoggingEvent> eventQueue
loggersback to summary
pack-priv final Map<String, SubstituteLogger> loggers
postInitializationback to summary
pack-priv volatile boolean postInitialization

Constructor Detail

SubstituteLoggerFactoryback to summary
public SubstituteLoggerFactory()

Method Detail

clearback to summary
public void clear()
getEventQueueback to summary
public LinkedBlockingQueue<SubstituteLoggingEvent> getEventQueue()
getLoggerback to summary
public synchronized Logger getLogger(String name)

Implements org.slf4j.ILoggerFactory.getLogger.

Doc from org.slf4j.ILoggerFactory.getLogger.

Return an appropriate Logger instance as specified by the name parameter.

If the name parameter is equal to Logger#ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned.

Null-valued name arguments are considered invalid.

Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.

getLoggerNamesback to summary
public List<String> getLoggerNames()
getLoggersback to summary
public List<SubstituteLogger> getLoggers()
postInitializationback to summary
public void postInitialization()