public class LogFactory extends Object
Constructor and Description |
---|
LogFactory() |
Modifier and Type | Method and Description |
---|---|
static Log |
getLog(Class<?> clazz)
Convenience method to return a named logger, without the application
having to care about factories.
|
static Log |
getLog(String name)
Convenience method to return a named logger, without the application
having to care about factories.
|
public static Log getLog(Class<?> clazz) throws LogConfigurationException
clazz
- Class from which a log name will be derivedLogConfigurationException
- if a suitable Log
instance cannot be returnedpublic static Log getLog(String name) throws LogConfigurationException
name
- 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)LogConfigurationException
- if a suitable Log
instance cannot be returnedCopyright © 2007–2014 The Apache Software Foundation. All rights reserved.