org.apache.commons.discovery.log
Class DiscoveryLogFactory

java.lang.Object
  |
  +--org.apache.commons.discovery.log.DiscoveryLogFactory

public class DiscoveryLogFactory
extends java.lang.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: SimpleLog.java,v 1.4 2002/06/15 20:54:48 craigmcc Exp $
Author:
Richard A. Sitze, Scott Sanders, Rod Waldhoff, Robert Burrell Donkin

Constructor Summary
DiscoveryLogFactory()
           
 
Method Summary
static org.apache.commons.logging.Log _newLog(java.lang.Class clazz)
          This method MUST not invoke any logging..
static org.apache.commons.logging.Log newLog(java.lang.Class clazz)
           
static void setFactory(org.apache.commons.logging.LogFactory factory)
          Set logFactory, works ONLY on first call.
static void setLog(org.apache.commons.logging.Log _log)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiscoveryLogFactory

public DiscoveryLogFactory()
Method Detail

newLog

public static org.apache.commons.logging.Log newLog(java.lang.Class clazz)

_newLog

public static org.apache.commons.logging.Log _newLog(java.lang.Class clazz)
This method MUST not invoke any logging..

setLog

public static void setLog(org.apache.commons.logging.Log _log)

setFactory

public static void setFactory(org.apache.commons.logging.LogFactory factory)
Set logFactory, works ONLY on first call.


Copyright (c) 2002 - Apache Software Foundation