|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.washington.cs.rfid.util.Logger
public class Logger
A generic logging utility. Supports the creation and maintenance of log files.
| Constructor Summary | |
|---|---|
Logger(java.lang.String baseName)
Creates a new Logger. |
|
Logger(java.lang.String baseDir,
java.lang.String baseName)
Creates a new Logger. |
|
| Method Summary | |
|---|---|
void |
log(java.lang.String msg)
Logs the given message to the log file. |
void |
shutdown()
Shuts down this logger by flushing and closing the output stream; |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Logger(java.lang.String baseDir,
java.lang.String baseName)
Logger. Searches the given base directory for
other log files having the same specified base name and creates a new log
file with the same base name but a unique (i.e. incrementally numbered) full name.
baseDir - The base directorybaseName - The base filenamepublic Logger(java.lang.String baseName)
Logger. Searches the default base directory for
other log files having the same specified base name and creates a new log
file with the same base name but a unique (i.e. incrementally numbered) full name.
baseName - The base filename| Method Detail |
|---|
public void shutdown()
public void log(java.lang.String msg)
msg - The message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||