public interface Logger
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the log file
|
String |
getFileName()
Returns the name of the log file
|
void |
info(String msg)
Writes the info message in the log file
|
void |
setFileName(String name)
Sets the name of the log file
|
void |
setFileName(String name,
boolean append)
Sets the name of the log file and if the file is to be open in append mode
|
void |
setFileName(String name,
int logLen,
int count,
boolean append)
Sets the name of the log file its maximum length and its maximum number
of copies
|
void |
severe(String msg)
Writes the severe error message in the log file
|
void |
warning(String msg)
Writes the warning error message in the log file
|
void setFileName(String name) throws IOException
name - the name of the log fileIOExceptionvoid setFileName(String name, boolean append) throws IOException
name - the name of the log fileappend - specify if the file is to open in append modeIOExceptionvoid setFileName(String name, int logLen, int count, boolean append) throws IOException
name - the name of the log filelogLen - is the maximum length of the log filecount - is the maximum number of log files producedappend - specifies if the file is to be open in append modeIOExceptionString getFileName()
void severe(String msg)
msg - the message that is to be writtenvoid info(String msg)
msg - the message that is to be writtenvoid warning(String msg)
msg - the message that is to be writtenvoid close()