Uses of Class
org.apache.commons.logging.LogFactory
-
Packages that use LogFactory Package Description org.apache.commons.logging Simple wrapper API around multiple logging APIs.org.apache.commons.logging.impl Concrete implementations of commons-logging wrapper APIs. -
-
Uses of LogFactory in org.apache.commons.logging
Fields in org.apache.commons.logging declared as LogFactory Modifier and Type Field Description protected static LogFactoryLogFactory. nullClassLoaderFactoryDeprecated.Since 1.1.2Fields in org.apache.commons.logging with type parameters of type LogFactory Modifier and Type Field Description protected static java.util.Hashtable<java.lang.ClassLoader,LogFactory>LogFactory. factoriesThe previously constructedLogFactoryinstances, keyed by theClassLoaderwith which it was created.Methods in org.apache.commons.logging that return LogFactory Modifier and Type Method Description private static LogFactoryLogFactory. getCachedFactory(java.lang.ClassLoader contextClassLoader)Gets a cached log factory (keyed by contextClassLoader)static LogFactoryLogFactory. getFactory()Constructs (if necessary) and return aLogFactoryinstance, using the following ordered lookup procedure to determine the name of the implementation class to be loaded.protected static LogFactoryLogFactory. newFactory(java.lang.String factoryClass, java.lang.ClassLoader classLoader)Method provided for backwards compatibility; see newFactory version that takes 3 parameters.protected static LogFactoryLogFactory. newFactory(java.lang.String factoryClass, java.lang.ClassLoader classLoader, java.lang.ClassLoader contextClassLoader)Gets a new instance of the specifiedLogFactoryimplementation class, loaded by the specified class loader.private static LogFactoryLogFactory. newStandardFactory(java.lang.ClassLoader classLoader)Tries to load one of the standard three implementations from the given classloader.Methods in org.apache.commons.logging that return types with arguments of type LogFactory Modifier and Type Method Description private static java.util.Hashtable<java.lang.ClassLoader,LogFactory>LogFactory. createFactoryStore()Creates the hash table which will be used to store a map of (context class loader -> logfactory-object).Methods in org.apache.commons.logging with parameters of type LogFactory Modifier and Type Method Description private static voidLogFactory. cacheFactory(java.lang.ClassLoader classLoader, LogFactory factory)Remember this factory, so later calls to LogFactory.getCachedFactory can return the previously created object (together with all its cached Log objects). -
Uses of LogFactory in org.apache.commons.logging.impl
Subclasses of LogFactory in org.apache.commons.logging.impl Modifier and Type Class Description classLog4jApiLogFactoryLogger factory hardcoded to send everything to Log4j API.classLogFactoryImplConcrete subclass ofLogFactorythat implements the following algorithm to dynamically select a logging implementation class to instantiate a wrapper for: Use a factory configuration attribute namedorg.apache.commons.logging.Logto identify the requested implementation class. Use theorg.apache.commons.logging.Logsystem property to identify the requested implementation class. If Log4J is available, return an instance oforg.apache.commons.logging.impl.Log4JLogger. If JDK 1.4 or later is available, return an instance oforg.apache.commons.logging.impl.Jdk14Logger. Otherwise, return an instance oforg.apache.commons.logging.impl.SimpleLog.classSlf4jLogFactoryLogger factory hardcoded to send everything to SLF4J.
-