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