org.apache.commons.discovery.log
Class DiscoveryLogFactory

java.lang.Object
  extended by org.apache.commons.discovery.log.DiscoveryLogFactory

Deprecated. Starting from commons-discovery-05, Log is totally delegated to commons-logging

@Deprecated
public class DiscoveryLogFactory
extends Object

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 $

Constructor Summary
DiscoveryLogFactory()
          Deprecated.  
 
Method Summary
static org.apache.commons.logging.Log _newLog(Class<?> clazz)
          Deprecated. This method MUST not invoke any logging..
static org.apache.commons.logging.Log newLog(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(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(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


Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.