Constructor and Description |
---|
Logger(java.lang.String path)
Constructs a new logger directing logging output to the file
with the specified path, or suppressing logging output if the
specified path is
null . |
Modifier and Type | Method and Description |
---|---|
void |
closeLogFile()
Closes the current logging output file, if any, having first
appended a date/time message to it.
|
void |
logMsg(java.lang.String msg)
Appends the given message text to the current logging output
file, if any.
|
void |
logWrite(java.lang.String msg)
Appends the given message text and a line terminator to the current
logginng output file, if any.
|
void |
openLogFile(java.lang.String path)
Opens a new logging output file with the specified path,
having first closed any previous logging output file.
|
public Logger(java.lang.String path)
null
.public void openLogFile(java.lang.String path)
openLogFile
in interface Logging
public void closeLogFile()
closeLogFile
in interface Logging
public void logMsg(java.lang.String msg)