Package org.slf4j.impl
Class SimpleLoggerFactory
java.lang.Object
org.slf4j.impl.SimpleLoggerFactory
- All Implemented Interfaces:
org.slf4j.ILoggerFactory
- Direct Known Subclasses:
MavenSimpleLoggerFactory
An implementation of
ILoggerFactory which always returns
SimpleLogger instances.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.slf4j.LoggerReturn an appropriateSimpleLoggerinstance by name.(package private) voidreset()Clear the internal logger cache.
-
Field Details
-
loggerMap
ConcurrentMap<String,org.slf4j.Logger> loggerMap
-
-
Constructor Details
-
SimpleLoggerFactory
public SimpleLoggerFactory()
-
-
Method Details
-
getLogger
Return an appropriateSimpleLoggerinstance by name.- Specified by:
getLoggerin interfaceorg.slf4j.ILoggerFactory
-
reset
void reset()Clear the internal logger cache. This method is intended to be called by classes (in the same package) for testing purposes. This method is internal. It can be modified, renamed or removed at any time without notice. You are strongly discouraged from calling this method in production code.
-