|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectutilities.logging.Logger
public class Logger
This object allows detailed logging to take place. It will write to a text file with a name passed to it's constructor and will automatically create one if one is not found.
| Constructor Summary | |
|---|---|
Logger(java.lang.String logFileName,
int logLevel)
|
|
| Method Summary | |
|---|---|
void |
clearLog()
Empties the log file. |
int |
getLogLevel()
|
void |
logIt(java.lang.Object caller,
java.lang.String message,
int statusCode)
Method that does the actual writing to the log file. |
void |
setGUI(CommonGUI commonGUI)
Links this object to a logging GUI |
void |
setLogLevel(int logLevel)
Changes the logging level. |
void |
startLogging()
Starts logging by getting a reference to the log file and creating one if it doesn't already exist. |
void |
stopLogging()
Stops logging from occuring. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Logger(java.lang.String logFileName,
int logLevel)
| Method Detail |
|---|
public void startLogging()
public void stopLogging()
public void logIt(java.lang.Object caller,
java.lang.String message,
int statusCode)
caller - The object that calls this methodmessage - The message to be writtenstatusCode - The status code of the message. Lower is of greater importance.public void clearLog()
public void setLogLevel(int logLevel)
logLevel - public int getLogLevel()
public void setGUI(CommonGUI commonGUI)
commonGUI -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||