public class CtpLogFactory extends Object
构造器和说明 |
---|
CtpLogFactory() |
限定符和类型 | 方法和说明 |
---|---|
static org.apache.commons.logging.Log |
getLog(Class clazz)
Convenience method to return a named logger, without the application
having to care about factories.
|
static org.apache.commons.logging.Log |
getLog(String className)
Convenience method to return a named logger, without the application
having to care about factories.
|
public static org.apache.commons.logging.Log getLog(Class clazz) throws org.apache.commons.logging.LogConfigurationException
clazz
- Class from which a log name will be derivedorg.apache.commons.logging.LogConfigurationException
- LogConfigurationException if a suitable Log instance cannot
be returnedpublic static org.apache.commons.logging.Log getLog(String className) throws org.apache.commons.logging.LogConfigurationException
className
- Logical name of the Log instance to be returned (the meaning
of this name is only known to the underlying logging
implementation that is being wrapped)org.apache.commons.logging.LogConfigurationException
- if a suitable Log instance cannot be returnedCopyright © 2016–2017. All rights reserved.