org.objectweb.easybeans.log
Class JLogFactory

java.lang.Object
  extended by org.objectweb.easybeans.log.JLogFactory

public final class JLogFactory
extends java.lang.Object

This factory delegates to commons logging factory the creation of a logger. Then, this logger is wrapped into an EasyBeans logger.

Author:
Florent Benoit

Field Summary
private static java.lang.String COMMONS_LOGGING_PROPERTY
          Use of commons logging.
private static boolean init
          Initialized ?
private static boolean useCommonsLogging
          Use commons logging instead ?
 
Constructor Summary
private JLogFactory()
          Utility class, no public constructor.
 
Method Summary
static JLog getLog(java.lang.Class clazz)
          Factory method used to return a logger.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMMONS_LOGGING_PROPERTY

private static final java.lang.String COMMONS_LOGGING_PROPERTY
Use of commons logging.

See Also:
Constant Field Values

useCommonsLogging

private static boolean useCommonsLogging
Use commons logging instead ?


init

private static boolean init
Initialized ?

Constructor Detail

JLogFactory

private JLogFactory()
Utility class, no public constructor.

Method Detail

getLog

public static JLog getLog(java.lang.Class clazz)
Factory method used to return a logger.

Parameters:
clazz - a class used as a key for the logger
Returns:
an EasyBeans logger.