|
||||||||||
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
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()
|
Method Summary | |
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)
|
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(java.lang.Class clazz)
public static org.apache.commons.logging.Log _newLog(java.lang.Class clazz)
public static void setLog(org.apache.commons.logging.Log _log)
public static void setFactory(org.apache.commons.logging.LogFactory factory)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |