Package org.apache.commons.discovery.log
Class DiscoveryLogFactory
java.lang.Object
org.apache.commons.discovery.log.DiscoveryLogFactory
Deprecated.
Starting from commons-discovery-05, Log is totally delegated to commons-logging
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.
- Version:
- $Id: DiscoveryLogFactory.java 1089255 2011-04-05 21:51:05Z simonetripodi $
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.commons.logging.Log
Deprecated.This method MUST not invoke any logging..static org.apache.commons.logging.Log
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.
-
Constructor Details
-
DiscoveryLogFactory
public DiscoveryLogFactory()Deprecated.
-
-
Method Details
-
newLog
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
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
Deprecated.Sets theLog
for this class.- Parameters:
_log
- This classLog
-
setFactory
Deprecated.Set logFactory, works ONLY on first call.- Parameters:
factory
- The log factory
-