Class DiscoveryLogFactory


  • @Deprecated
    public class DiscoveryLogFactory
    extends java.lang.Object
    Deprecated.
    Starting from commons-discovery-05, Log is totally delegated to commons-logging

    Simple implementation of Log that sends all enabled log messages, for all defined loggers, to System.err.

    Hacked from commons-logging SimpleLog for use in discovery. This is intended to be enough of a Log implementation to bootstrap Discovery.

    One property: org.apache.commons.discovery.log.level. valid values: all, trace, debug, info, warn, error, fatal, off.

    Version:
    $Id: DiscoveryLogFactory.java 1089255 2011-04-05 21:51:05Z simonetripodi $
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static org.apache.commons.logging.Log _newLog​(java.lang.Class<?> clazz)
      Deprecated.
      This method MUST not invoke any logging..
      static org.apache.commons.logging.Log newLog​(java.lang.Class<?> clazz)
      Deprecated.
      Creates a new Log instance for the input class.
      static void setFactory​(org.apache.commons.logging.LogFactory factory)
      Deprecated.
      Set logFactory, works ONLY on first call.
      static void setLog​(org.apache.commons.logging.Log _log)
      Deprecated.
      Sets the Log for this class.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DiscoveryLogFactory

        public DiscoveryLogFactory()
        Deprecated.
    • Method Detail

      • newLog

        public static org.apache.commons.logging.Log newLog​(java.lang.Class<?> clazz)
        Deprecated.
        Creates a new Log instance for the input class.
        Parameters:
        clazz - The class the log has to be created for
        Returns:
        The input class logger
      • _newLog

        public static org.apache.commons.logging.Log _newLog​(java.lang.Class<?> clazz)
        Deprecated.
        This method MUST not invoke any logging..
        Parameters:
        clazz - The class the log has to be created for
        Returns:
        The input class logger
      • setLog

        public static void setLog​(org.apache.commons.logging.Log _log)
        Deprecated.
        Sets the Log for this class.
        Parameters:
        _log - This class Log
      • setFactory

        public static void setFactory​(org.apache.commons.logging.LogFactory factory)
        Deprecated.
        Set logFactory, works ONLY on first call.
        Parameters:
        factory - The log factory