Package 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: DiscoveryLogFactory.java 480374 2006-11-29 03:33:25Z niallp $
- Author:
- Richard A. Sitze, Scott Sanders, Rod Waldhoff, Robert Burrell Donkin
-
-
Constructor Summary
Constructors Constructor Description DiscoveryLogFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
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.
-
-