|
SandMark version 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sandmark.util.Log
The sandmark.util.Log class handles logging for a SandMark application. Logging is considered a global aspect of the program, and all methods are static.
Every message has a level associated with it. Only messages meeting a specified threshold are seen by the user. Levels are TBD. #%#%#%#%#%#%
Multiple log files can be specified, each with its own threshold. Each message is logged to every file with an accepting threshold. #%#%#%# (THAT IS TBD. ONLY ONE FILE WORKS NOW.)
Field Summary | |
(package private) static SandMarkFrame |
frame
|
Constructor Summary | |
Log()
|
Method Summary | |
static void |
message(int level,
java.lang.String msg)
Sends a message to the log files. |
static void |
message(int level,
java.lang.String msg,
java.lang.Throwable t)
Sends an exception message to the log files. |
static void |
setLog(java.io.OutputStream o,
int thresh)
Registers an output stream for logging. |
static void |
setLog(SandMarkFrame f,
int thresh)
Registers a SandMarkFrame to receive log messages. |
static void |
setLog(java.lang.String fname,
int thresh)
Opens and registers an output file for logging. |
static void |
setLog(java.io.Writer w,
int thresh)
Registers an output writer for logging. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static SandMarkFrame frame
Constructor Detail |
public Log()
Method Detail |
public static void setLog(java.lang.String fname, int thresh) throws java.io.IOException
fname
- filename for outputthresh
- message threshold
java.io.IOException
public static void setLog(java.io.OutputStream o, int thresh)
thresh
- message thresholdpublic static void setLog(java.io.Writer w, int thresh)
w
- output streamthresh
- message thresholdpublic static void setLog(SandMarkFrame f, int thresh)
f
- parent windowthresh
- message thresholdpublic static void message(int level, java.lang.String msg)
level
- message levelmsg
- message textpublic static void message(int level, java.lang.String msg, java.lang.Throwable t)
level
- message levelmsg
- message text
|
SandMark version 3.0 Wed Jan 29 10:30:05 MST 2003 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |