Class SimpleLoggerFactory

  • All Implemented Interfaces:
    org.slf4j.ILoggerFactory
    Direct Known Subclasses:
    MavenSimpleLoggerFactory

    public class SimpleLoggerFactory
    extends java.lang.Object
    implements org.slf4j.ILoggerFactory
    An implementation of ILoggerFactory which always returns SimpleLogger instances.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.util.concurrent.ConcurrentMap<java.lang.String,​org.slf4j.Logger> loggerMap  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.slf4j.Logger getLogger​(java.lang.String name)
      Return an appropriate SimpleLogger instance by name.
      (package private) void reset()
      Clear the internal logger cache.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • loggerMap

        java.util.concurrent.ConcurrentMap<java.lang.String,​org.slf4j.Logger> loggerMap
    • Constructor Detail

      • SimpleLoggerFactory

        public SimpleLoggerFactory()
    • Method Detail

      • getLogger

        public org.slf4j.Logger getLogger​(java.lang.String name)
        Return an appropriate SimpleLogger instance by name.
        Specified by:
        getLogger in interface org.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.