eXo Kernel :: Commons Utils 2.4.10-UXP01

org.exoplatform.services.log.impl
Class AbstractExoLogFactory

java.lang.Object
  extended by 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.

Version:
$Id: AbstractExoLogFactory.java 34394 2009-07-23 09:23:31Z dkatayev $
Author:
Julien Viet

Constructor Summary
AbstractExoLogFactory()
           
 
Method Summary
 Log getExoLogger(Class clazz)
          Obtain a logger for the specified name.
 Log getExoLogger(String name)
          Obtain a logger for the specified name.
protected abstract  Log getLogger(String name)
          Obtain a specified logger.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractExoLogFactory

public AbstractExoLogFactory()
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:
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

eXo Kernel :: Commons Utils 2.4.10-UXP01

Copyright © 2014 eXo Platform SAS. All Rights Reserved.