Class AbstractExoLogFactory

java.lang.Object
org.exoplatform.services.log.impl.AbstractExoLogFactory
All Implemented Interfaces:
ExoLogFactory
Direct Known Subclasses:
SimpleExoLogFactory, SLF4JExoLogFactory

public abstract class AbstractExoLogFactory extends Object implements ExoLogFactory
An abstract logger factory that maintains a cache of name to logger instance. The cache is based on the ConcurrentHashMap for better scalability.
  • Constructor Details

    • AbstractExoLogFactory

      public AbstractExoLogFactory()
  • Method Details

    • getLogger

      protected abstract Log getLogger(String name)
      Obtain a specified logger.
      Parameters:
      name - the logger name
      Returns:
      the logger
    • getExoLogger

      public final Log getExoLogger(String name)
      Obtain a logger for the specified name.
      Specified by:
      getExoLogger in interface ExoLogFactory
      Parameters:
      name - the logger name
      Returns:
      the logger
    • getExoLogger

      public final Log getExoLogger(Class clazz)
      Obtain a logger for the specified name.
      Specified by:
      getExoLogger in interface ExoLogFactory
      Parameters:
      clazz - the logger name
      Returns:
      the logger