Class SimpleLoggerFactory

    • Field Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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,​Logger> loggerMap
    • Constructor Detail

      • SimpleLoggerFactory

        public SimpleLoggerFactory()
    • Method Detail

      • getLogger

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