java.lang.Object
edu.internet2.middleware.grouperClientExt.org.apache.commons.logging.LogSource

public class LogSource extends Object
Deprecated.
Use LogFactory instead - The default factory implementation performs exactly the same algorithm as this class did

Factory for creating Log instances. Applications should call the makeNewLogInstance() method to instantiate new instances of the configured Log implementation class.

By default, calling getInstance() will use the following algorithm:

  • If Log4J is available, return an instance of org.apache.commons.logging.impl.Log4JLogger.
  • If JDK 1.4 or later is available, return an instance of org.apache.commons.logging.impl.Jdk14Logger.
  • Otherwise, return an instance of org.apache.commons.logging.impl.NoOpLog.

You can change the default behavior in one of two ways:

  • On the startup command line, set the system property org.apache.commons.logging.log to the name of the org.apache.commons.logging.Log implementation class you want to use.
  • At runtime, call LogSource.setLogImplementation().
Version:
$Id: LogSource.java,v 1.1 2008-11-30 10:57:27 mchyzer Exp $
  • Field Details

    • logs

      protected static Hashtable logs
      Deprecated.
    • log4jIsAvailable

      protected static boolean log4jIsAvailable
      Deprecated.
      Is log4j available (in the current classpath)
    • jdk14IsAvailable

      protected static boolean jdk14IsAvailable
      Deprecated.
      Is JDK 1.4 logging available
    • logImplctor

      protected static Constructor logImplctor
      Deprecated.
      Constructor for current log class
  • Method Details