Package org.slf4j.impl
Class SimpleLoggerFactory
- java.lang.Object
-
- org.slf4j.impl.SimpleLoggerFactory
-
- All Implemented Interfaces:
ILoggerFactory
public class SimpleLoggerFactory extends java.lang.Object implements ILoggerFactory
An implementation ofILoggerFactory
which always returnsSimpleLogger
instances.
-
-
Constructor Summary
Constructors Constructor Description SimpleLoggerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Logger
getLogger(java.lang.String name)
Return an appropriateSimpleLogger
instance by name.(package private) void
reset()
Clear the internal logger cache.
-
-
-
Field Detail
-
loggerMap
java.util.concurrent.ConcurrentMap<java.lang.String,Logger> loggerMap
-
-
Method Detail
-
getLogger
public Logger getLogger(java.lang.String name)
Return an appropriateSimpleLogger
instance by name.- Specified by:
getLogger
in interfaceILoggerFactory
- Parameters:
name
- the name of the Logger to return- Returns:
- a Logger instance
-
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.
-
-