|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javatools.util.FileLog
A class for logging context specific messages to a file. Logged messages include the context (typically a class or subsystem), a date-time stamp a severity and supplied text. Entries are of the form:
yyyy.MM.dd HH:mm:ss
If the system property "debugOn" is set to TRUE the messages with a severity of DEBUG will be logged. If the property is missing or is FALSE then DEBUG messages will be ignored.
Field Summary |
Fields inherited from interface javatools.util.Log |
DEBUG, ERROR, INFO, names, SEVERE, WARNING |
Method Summary | |
void |
debug(java.lang.String sID,
java.lang.String sMessage)
Puts a debug message in the log. |
void |
error(java.lang.String sID,
java.lang.String sMessage)
Puts an error message in the log. |
void |
finalize()
Destroys this object. |
void |
info(java.lang.String sID,
java.lang.String sMessage)
Puts an info message in the log. |
void |
init(java.lang.String path,
int debugLevel)
Performs initializing. |
void |
log(int severity,
java.lang.String sID,
java.lang.String sMessage)
Puts a new message in the log. |
void |
severe(java.lang.String sID,
java.lang.String sMessage)
Puts a severe error message in the log. |
static FileLog |
singleton()
Returns the instance for the FileLog. |
void |
warning(java.lang.String sID,
java.lang.String sMessage)
Puts a warning message in the log. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static FileLog singleton()
public void init(java.lang.String path, int debugLevel)
path
- The path-to-the-file to be used ad a log.debugLevel
- The minimum severity to take care of.public void log(int severity, java.lang.String sID, java.lang.String sMessage)
log
in interface Log
severity
- The severity of the problem.sID
- The ID of the event.sMessage
- The message to save.public void debug(java.lang.String sID, java.lang.String sMessage)
debug
in interface Log
sID
- The ID of the problem.sMessage
- The message to put in the log.public void info(java.lang.String sID, java.lang.String sMessage)
info
in interface Log
sID
- The ID of the problem.sMessage
- The message to be put in the log.public void warning(java.lang.String sID, java.lang.String sMessage)
warning
in interface Log
sID
- The ID of the problem.sMessage
- The message to be put in the log.public void error(java.lang.String sID, java.lang.String sMessage)
error
in interface Log
sID
- The ID of the problem.sMessage
- The message to be put in the log.public void severe(java.lang.String sID, java.lang.String sMessage)
severe
in interface Log
sID
- The ID of the problem.sMessage
- The message to be put in the log.public void finalize()
finalize
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |