org.modeshape.common.util.log
Class LogFactory

java.lang.Object
  extended by org.modeshape.common.util.log.LogFactory
Direct Known Subclasses:
JdkLoggerFactory, SLF4JLoggerFactory

public abstract class LogFactory
extends Object


Constructor Summary
LogFactory()
           
 
Method Summary
static LogFactory getLogFactory()
           
abstract  Logger getLogger(Class<?> clazz)
          Return a logger named corresponding to the class passed as parameter.
abstract  Logger getLogger(String name)
          Return a logger named according to the name parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogFactory

public LogFactory()
Method Detail

getLogFactory

public static LogFactory getLogFactory()

getLogger

public abstract Logger getLogger(Class<?> clazz)
Return a logger named corresponding to the class passed as parameter.

Parameters:
clazz - the returned logger will be named after clazz
Returns:
logger

getLogger

public abstract Logger getLogger(String name)
Return a logger named according to the name parameter.

Parameters:
name - The name of the logger.
Returns:
logger


Copyright © 2008-2011 JBoss, a division of Red Hat. All Rights Reserved.