ch.elca.el4j.util.socketstatistics.genericlogger
Class GenericLogFactory

java.lang.Object
  extended by ch.elca.el4j.util.socketstatistics.genericlogger.GenericLogFactory

public class GenericLogFactory
extends Object

LogFactory that returns a GenericLogger. This Factory searches in all loaded classes of the calling thread for a logging facility and returns the corresponding GenericLogger. The search order is as follows: - SLF4J (org.slf4j.LoggerFactory) - Apache Commons Logging (org.apache.commons.logging) - Log4J (org.apache.log4j) If none of these logging facilities is found, it uses the JDK logging (java.util.logging).

Author:
Jonas Hauenstein (JHN)
File-location:
GenericLogFactory
Last check-in date:
2010-01-15 14:26:34 +0100 (Fr, 15. Jan 2010) by jonasha for revision 4093

Constructor Summary
GenericLogFactory()
           
 
Method Summary
static GenericLogger getLogger(Class clazz)
          Return a GenericLogger named corresponding to the class passed as parameter.
static GenericLogger getLogger(String name)
          Return a GenericLogger named corresponding to the name parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericLogFactory

public GenericLogFactory()
Method Detail

getLogger

public static GenericLogger getLogger(Class clazz)
Return a GenericLogger named corresponding to the class passed as parameter.

Parameters:
clazz - The returned logger will be named after clazz
Returns:
The GenericLogger

getLogger

public static GenericLogger getLogger(String name)
Return a GenericLogger named corresponding to the name parameter.

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


Copyright © 2005-2011 ELCA. All Rights Reserved.