|
RbUtils 0.13 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ktc.rbutils.rb.LoggerCreator
public class LoggerCreator
Utility class that helps for logger creation.
All RbUtils loggers can be created with this class according to a taskname.
Constructor Summary | |
---|---|
LoggerCreator()
Instanciates a new Logger. |
Method Summary | |
---|---|
Logger |
createLogger(String taskname)
Creates a logger according to a task. |
LoggerType |
getLoggerType()
Returns the type of this logger. |
File |
getOutputFile()
Returns the output file of this ant logger. |
void |
setLoggerType(LoggerType loggertype)
Set the type of the logger. |
void |
setLoggerType(String loggertype)
Sets the type of logger. |
void |
setOutputFile(File theOutputFile)
Set the file to output to. |
void |
setOutputFile(String path2File)
Set the file to output to. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LoggerCreator()
Method Detail |
---|
public LoggerType getLoggerType()
public void setLoggerType(LoggerType loggertype)
loggertype
- the type of the logger.public void setLoggerType(String loggertype)
loggertype
- the type of logger to be set.
RbUtilsRuntimeException
- if the provided String does not represent a logger type.public File getOutputFile()
public void setOutputFile(File theOutputFile)
theOutputFile
- the file to output to.public void setOutputFile(String path2File)
path2File
is null
, the file is
not set.
path2File
- the full path to the file.public Logger createLogger(String taskname) throws IOException, UnSpecifiedFileException
taskname
- the task to be associated to the logger.
IOException
- if the logger relies on a file and this file cannot be created.
UnknownTaskException
- if the task is not supported.
UnSpecifiedFileException
- if the outputFile is not set and the the task relies on xml
logging.
|
Back to the RbUtils Home Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |