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.
Constructor and Description |
---|
DiscoveryLogFactory() |
Modifier and Type | Method and 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) |
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)
Copyright (c) 2002 - Apache Software Foundation