|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--com.dallaway.sloppy.Log
Utility for logging events, errors and debugging information.
This version simply writes to STDOUT and STDERR
End user events are date stamped. Notices, errors and debugging lines start with a hash (#).
| Field Summary | |
protected boolean |
DEBUG
|
| Constructor Summary | |
Log()
Construct a new default log |
|
| Method Summary | |
void |
debug(java.lang.String msg)
Write a debugging message |
void |
error(java.lang.Exception ex)
Record an error event |
void |
error(java.lang.String msg)
Record an error |
void |
error(java.lang.String msg,
java.lang.Exception ex)
Record an error |
void |
event(java.lang.String client,
java.lang.String msg)
Record an event, such as a client request, which should be logged for the end user |
void |
notice(java.lang.String msg)
Record a notice event, such as service startup |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
protected final boolean DEBUG
| Constructor Detail |
public Log()
| Method Detail |
public void event(java.lang.String client,
java.lang.String msg)
client_id - A string identifying the clientmessage - The message to log. A time stamp will be included in the outputpublic void debug(java.lang.String msg)
message - The message to writepublic void notice(java.lang.String msg)
message - The message to writepublic void error(java.lang.String msg)
message - The message to record
public void error(java.lang.String msg,
java.lang.Exception ex)
message - The message to writeexception - Associated exceptionpublic void error(java.lang.Exception ex)
exception - Associated exception
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||