Package org.apache.commons.logging
Class LogFactoryService
- java.lang.Object
- org.apache.commons.logging.LogFactory
- org.apache.commons.logging.LogFactoryService
@Deprecated public class LogFactoryService extends LogFactory
Deprecated.since it is only meant to be used in the above-mentioned fallback scenarioA minimal subclass of the standard Apache Commons Logging'sLogFactoryclass, overriding the abstractgetInstancelookup methods. This is just applied in case of the standardcommons-loggingjar accidentally ending up on the classpath, with the standardLogFactoryclass performing its META-INF service discovery. This implementation simply delegates to Spring's commonLogfactory methods.- Since:
- 5.1
- Author:
- Juergen Hoeller
Constructor Summary
Constructors Constructor Description LogFactoryService()Deprecated.
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ObjectgetAttribute(String name)Deprecated.String[]getAttributeNames()Deprecated.LoggetInstance(Class<?> clazz)Deprecated.Convenience method to return a named logger.LoggetInstance(String name)Deprecated.Convenience method to return a named logger.voidrelease()Deprecated.voidremoveAttribute(String name)Deprecated.voidsetAttribute(String name, Object value)Deprecated.Methods inherited from class org.apache.commons.logging.LogFactory
getFactory, getLog, getLog
Constructor Detail
LogFactoryService
public LogFactoryService()
Deprecated.
Method Detail
getInstance
public Log getInstance(Class<?> clazz)
Deprecated.Description copied from class:LogFactoryConvenience method to return a named logger.This variant just dispatches straight to
LogFactory.getLog(Class).- Overrides:
getInstancein classLogFactory- Parameters:
clazz- containing Class from which a log name will be derived
getInstance
public Log getInstance(String name)
Deprecated.Description copied from class:LogFactoryConvenience method to return a named logger.This variant just dispatches straight to
LogFactory.getLog(String).- Overrides:
getInstancein classLogFactory- Parameters:
name- logical name of theLoginstance to be returned
setAttribute
public void setAttribute(String name, Object value)
Deprecated.
removeAttribute
public void removeAttribute(String name)
Deprecated.
getAttribute
public Object getAttribute(String name)
Deprecated.
getAttributeNames
public String[] getAttributeNames()
Deprecated.
release
public void release()
Deprecated.