org.apache.commons.discovery.log

Class 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: DiscoveryLogFactory.java 480374 2006-11-29 03:33:25Z niallp $
Authors:
Richard A. Sitze
Scott Sanders
Rod Waldhoff
Robert Burrell Donkin

Method Summary

static Log
_newLog(Class clazz)
This method MUST not invoke any logging..
static Log
newLog(Class clazz)
static void
setFactory(LogFactory factory)
Set logFactory, works ONLY on first call.
static void
setLog(Log _log)

Method Details

_newLog

public static Log _newLog(Class clazz)
This method MUST not invoke any logging..

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)

Copyright (c) 2002 - Apache Software Foundation