public class ConsoleFactory extends LogFactory
ConsoleFactory class.
level, levelMapper| Constructor and Description |
|---|
ConsoleFactory()
Constructor for ConsoleFactory.
|
ConsoleFactory(IConfig config)
Constructor for ConsoleFactory.
|
ConsoleFactory(PrintStream stream)
Constructor for ConsoleFactory.
|
| Modifier and Type | Method and Description |
|---|---|
LogEngine |
createInstance(String name)
Construct and return a
Log instance,
using the factory's current set of configuration attributes. |
Log.LEVEL |
getLevel()
getLevel.
|
void |
init(ResourceNode config) |
String |
printTime()
printTime.
|
void |
setLevel(Log.LEVEL level)
setLevel.
|
getDefaultLevel, getInstance, getInstance, getLevelMapper, getLog, getParameterMapper, init, setDefaultLevel, setLevelMapper, setParameterMapperpublic ConsoleFactory()
Constructor for ConsoleFactory.
public ConsoleFactory(IConfig config) throws Exception
Constructor for ConsoleFactory.
public ConsoleFactory(PrintStream stream)
Constructor for ConsoleFactory.
stream - a PrintStream object.public LogEngine 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.
createInstance in class LogFactoryname - 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)LogEngine object.public void init(ResourceNode config) throws Exception
init in class LogFactoryExceptionCopyright © 2016. All Rights Reserved.