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 theConcurrentHashMapfor better scalability.- Version:
- $Id: AbstractExoLogFactory.java 34394 2009-07-23 09:23:31Z dkatayev $
- Author:
- Julien Viet
-
-
Constructor Summary
Constructors Constructor Description AbstractExoLogFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description LoggetExoLogger(Class clazz)Obtain a logger for the specified name.LoggetExoLogger(String name)Obtain a logger for the specified name.protected abstract LoggetLogger(String name)Obtain a specified logger.
-
-
-
Method Detail
-
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:
getExoLoggerin interfaceExoLogFactory- Parameters:
name- the logger name- Returns:
- the logger
-
getExoLogger
public final Log getExoLogger(Class clazz)
Obtain a logger for the specified name.- Specified by:
getExoLoggerin interfaceExoLogFactory- Parameters:
clazz- the logger name- Returns:
- the logger
-
-