@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.
Constructor and Description |
---|
DiscoveryLogFactory()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
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. |
public static org.apache.commons.logging.Log newLog(Class<?> clazz)
Log
instance for the input class.clazz
- The class the log has to be created forpublic static org.apache.commons.logging.Log _newLog(Class<?> clazz)
clazz
- The class the log has to be created forpublic static void setLog(org.apache.commons.logging.Log _log)
Log
for this class._log
- This class Log
public static void setFactory(org.apache.commons.logging.LogFactory factory)
factory
- The log factoryCopyright © 2002-2012 Apache Software Foundation. All Rights Reserved.