|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectutil.Logger
public class Logger
A very simple file-based implementation of the
Logging
interface.
Constructor Summary | |
---|---|
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 . |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Logger(java.lang.String path)
null
.
Method Detail |
---|
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)
logMsg
in interface Logging
public void logWrite(java.lang.String msg)
logWrite
in interface Logging
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |