Package org.apache.commons.discovery.log
Class DiscoveryLogFactory
- java.lang.Object
-
- org.apache.commons.discovery.log.DiscoveryLogFactory
-
@Deprecated public class DiscoveryLogFactory extends java.lang.Object
Deprecated.Starting from commons-discovery-05, Log is totally delegated to commons-loggingSimple 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.- Version:
- $Id: DiscoveryLogFactory.java 1089255 2011-04-05 21:51:05Z simonetripodi $
-
-
Constructor Summary
Constructors Constructor Description DiscoveryLogFactory()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method 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 newLog
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 theLog
for this class.
-
-
-
Method Detail
-
newLog
public static org.apache.commons.logging.Log newLog(java.lang.Class<?> clazz)
Deprecated.Creates a newLog
instance for the input class.- Parameters:
clazz
- The class the log has to be created for- Returns:
- The input class logger
-
_newLog
public static org.apache.commons.logging.Log _newLog(java.lang.Class<?> clazz)
Deprecated.This method MUST not invoke any logging..- Parameters:
clazz
- The class the log has to be created for- Returns:
- The input class logger
-
setLog
public static void setLog(org.apache.commons.logging.Log _log)
Deprecated.Sets theLog
for this class.- Parameters:
_log
- This classLog
-
setFactory
public static void setFactory(org.apache.commons.logging.LogFactory factory)
Deprecated.Set logFactory, works ONLY on first call.- Parameters:
factory
- The log factory
-
-