|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.discovery.log.DiscoveryLogFactory
@Deprecated public class DiscoveryLogFactory
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 Summary | |
---|---|
DiscoveryLogFactory()
Deprecated. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DiscoveryLogFactory()
Method Detail |
---|
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 for
public static org.apache.commons.logging.Log _newLog(Class<?> clazz)
clazz
- The class the log has to be created for
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |