@Deprecated
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.
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<java.lang.Class<?>,java.lang.Class<?>> |
classRegistry
Deprecated.
|
private static org.apache.commons.logging.Log |
log
Deprecated.
Above fields must be initialied before this one..
|
private static org.apache.commons.logging.LogFactory |
logFactory
Deprecated.
|
private static java.lang.Class<?>[] |
setLogParamClasses
Deprecated.
|
Constructor and Description |
---|
DiscoveryLogFactory()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static org.apache.commons.logging.Log |
_newLog(java.lang.Class<?> clazz)
Deprecated.
This method MUST not invoke any logging..
|
static org.apache.commons.logging.Log |
newLog(java.lang.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. |
private static org.apache.commons.logging.LogFactory logFactory
private static final java.util.Map<java.lang.Class<?>,java.lang.Class<?>> classRegistry
private static final java.lang.Class<?>[] setLogParamClasses
private static org.apache.commons.logging.Log log
public static org.apache.commons.logging.Log newLog(java.lang.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(java.lang.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 factory