org.apache.commons.discovery.log

Class DiscoveryLogFactory

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 165666 2005-05-02 19:37:26Z rwinston $

Author: Richard A. Sitze Scott Sanders Rod Waldhoff Robert Burrell Donkin

Method Summary
static LognewLog(Class clazz)
static voidsetFactory(LogFactory factory)
Set logFactory, works ONLY on first call.
static voidsetLog(Log _log)
static Log_newLog(Class clazz)
This method MUST not invoke any logging..

Method Detail

newLog

public static Log newLog(Class clazz)

setFactory

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

setLog

public static void setLog(Log _log)

_newLog

public static Log _newLog(Class clazz)
This method MUST not invoke any logging..
Copyright (c) 2002 - Apache Software Foundation