org.modeshape.common.util.log
Class SLF4JLoggerFactory

java.lang.Object
  extended by org.modeshape.common.util.log.LogFactory
      extended by org.modeshape.common.util.log.SLF4JLoggerFactory

public final class SLF4JLoggerFactory
extends LogFactory

Factory used to create the Logger implementation that uses the SLF4J logging framework.


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

Constructor Detail

SLF4JLoggerFactory

public SLF4JLoggerFactory()
Method Detail

getLogger

public Logger getLogger(Class<?> clazz)
Description copied from class: LogFactory
Return a logger named corresponding to the class passed as parameter.

Specified by:
getLogger in class LogFactory
Parameters:
clazz - the returned logger will be named after clazz
Returns:
logger

getLogger

public Logger getLogger(String name)
Description copied from class: LogFactory
Return a logger named according to the name parameter.

Specified by:
getLogger in class LogFactory
Parameters:
name - The name of the logger.
Returns:
logger


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