public class ConsoleFactory extends LogFactory
| Constructor and Description |
|---|
ConsoleFactory() |
ConsoleFactory(IConfig config) |
ConsoleFactory(PrintStream stream) |
| Modifier and Type | Method and Description |
|---|---|
Log |
createInstance(String name)
Construct and return a
Log instance,
using the factory's current set of configuration attributes. |
Log.LEVEL |
getLevel() |
void |
init(ResourceNode config) |
String |
printTime() |
void |
setLevel(Log.LEVEL level) |
getInstance, getInstance, getLog, initpublic ConsoleFactory()
public ConsoleFactory(PrintStream stream)
public Log createInstance(String name)
LogFactoryConstruct 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)public String printTime()
public void init(ResourceNode config) throws Exception
init in class LogFactoryExceptionpublic Log.LEVEL getLevel()
public void setLevel(Log.LEVEL level)
Copyright © 2014. All rights reserved.