public abstract class LogFactory extends Object implements IBase
| Constructor and Description |
|---|
LogFactory() |
| Modifier and Type | Method and Description |
|---|---|
abstract Log |
createInstance(String name)
Construct and return a
Log instance,
using the factory's current set of configuration attributes. |
Log |
getInstance(Class<?> clazz)
Convenience method to derive a name from the specified class and
call
getInstance(String) with it. |
Log |
getInstance(String name)
Construct (if necessary) and return a
Log instance,
using the factory's current set of configuration attributes. |
Log |
getLog(Class<?> class1) |
void |
init() |
abstract void |
init(ResourceNode config) |
public Log getInstance(Class<?> clazz)
getInstance(String) with it.clazz - Class for which a suitable Log name will be derivedpublic abstract void init(ResourceNode config) throws Exception
Exceptionpublic Log getInstance(String name)
Construct (if necessary) and return a Log instance,
using the factory's current set of configuration attributes.
NOTE - Depending upon the implementation of
the LogFactory you are using, the Log
instance you are returned may or may not be local to the current
application, and may or may not be returned again on a subsequent
call with the same name argument.
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)public abstract Log createInstance(String name)
Construct and return a Log instance,
using the factory's current set of configuration attributes.
NOTE - Depending upon the implementation of
the LogFactory you are using, the Log
instance you are returned may or may not be local to the current
application, and may or may not be returned again on a subsequent
call with the same name argument.
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)Copyright © 2014. All rights reserved.