类 LogFactoryService
- java.lang.Object
- org.apache.commons.logging.LogFactory
- org.apache.commons.logging.LogFactoryService
@Deprecated public class LogFactoryService extends LogFactory
已过时。since it is only meant to be used in the above-mentioned fallback scenarioA minimal subclass of the standard Apache Commons Logging'sLogFactory
class, overriding the abstractgetInstance
lookup methods. This is just applied in case of the standardcommons-logging
jar accidentally ending up on the classpath, with the standardLogFactory
class performing its META-INF service discovery. This implementation simply delegates to Spring's commonLog
factory methods.- 从以下版本开始:
- 5.1
- 作者:
- Juergen Hoeller
构造器概要
构造器 构造器 说明 LogFactoryService()
已过时。
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 Object
getAttribute(String name)
已过时。String[]
getAttributeNames()
已过时。Log
getInstance(Class<?> clazz)
已过时。Convenience method to return a named logger.Log
getInstance(String name)
已过时。Convenience method to return a named logger.void
release()
已过时。void
removeAttribute(String name)
已过时。void
setAttribute(String name, Object value)
已过时。从类继承的方法 org.apache.commons.logging.LogFactory
getFactory, getLog, getLog
构造器详细资料
LogFactoryService
public LogFactoryService()
已过时。
方法详细资料
getInstance
public Log getInstance(Class<?> clazz)
已过时。从类复制的说明:LogFactory
Convenience method to return a named logger.This variant just dispatches straight to
LogFactory.getLog(Class)
.- 覆盖:
getInstance
在类中LogFactory
- 参数:
clazz
- containing Class from which a log name will be derived
getInstance
public Log getInstance(String name)
已过时。从类复制的说明:LogFactory
Convenience method to return a named logger.This variant just dispatches straight to
LogFactory.getLog(String)
.- 覆盖:
getInstance
在类中LogFactory
- 参数:
name
- logical name of theLog
instance to be returned
setAttribute
public void setAttribute(String name, Object value)
已过时。
removeAttribute
public void removeAttribute(String name)
已过时。
getAttribute
public Object getAttribute(String name)
已过时。
getAttributeNames
public String[] getAttributeNames()
已过时。
release
public void release()
已过时。