Class AbstractExoLogFactory
java.lang.Object
org.exoplatform.services.log.impl.AbstractExoLogFactory
- All Implemented Interfaces:
ExoLogFactory
- Direct Known Subclasses:
SimpleExoLogFactory,SLF4JExoLogFactory
An abstract logger factory that maintains a cache of name to logger instance.
The cache is based on the
ConcurrentHashMap for better scalability.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal LoggetExoLogger(Class clazz) Obtain a logger for the specified name.final LoggetExoLogger(String name) Obtain a logger for the specified name.protected abstract LogObtain a specified logger.
-
Constructor Details
-
AbstractExoLogFactory
public AbstractExoLogFactory()
-
-
Method Details
-
getLogger
Obtain a specified logger.- Parameters:
name- the logger name- Returns:
- the logger
-
getExoLogger
Obtain a logger for the specified name.- Specified by:
getExoLoggerin interfaceExoLogFactory- Parameters:
name- the logger name- Returns:
- the logger
-
getExoLogger
Obtain a logger for the specified name.- Specified by:
getExoLoggerin interfaceExoLogFactory- Parameters:
clazz- the logger name- Returns:
- the logger
-