Class SimpleLoggerFactory

  • All Implemented Interfaces:
    org.slf4j.ILoggerFactory

    public class SimpleLoggerFactory
    extends java.lang.Object
    implements org.slf4j.ILoggerFactory
    An implementation of ILoggerFactory which always returns SimpleLogger instances.
    Author:
    Ceki Gülcü
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.slf4j.Logger createLogger​(java.lang.String name)
      Actually creates the logger for the given name.
      org.slf4j.Logger getLogger​(java.lang.String name)
      Return an appropriate SimpleLogger instance by name.
      protected 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
    • Method Detail

      • getLogger

        public org.slf4j.Logger getLogger​(java.lang.String name)
        Return an appropriate SimpleLogger instance by name. This method will call createLogger(String) if the logger has not been created yet.
        Specified by:
        getLogger in interface org.slf4j.ILoggerFactory
      • createLogger

        protected org.slf4j.Logger createLogger​(java.lang.String name)
        Actually creates the logger for the given name.
      • reset

        protected void reset()
        Clear the internal logger cache. This method is intended to be called by classes (in the same package or subclasses) 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.