|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.spy.SpyObject
net.spy.log.SpyLog
The Spy Asynchronous logger.
SpyLog is an implementation of an asynchronous logger that allows one to have multiple points of input into a single queueing system that runs in its own thread recording the logs.
If this doesn't sound immediately obvious to you, imagine having a transactional system that logs into a database without slowing down the transactions. SpyLog gives you the ability to get a log entry out of your way quickly, to be permanently recorded later.
| Constructor Summary | |
SpyLog(String queueName)
Instantiate a SpyLog interface for the given queue name with the default flusher. |
|
SpyLog(String queueName,
SpyLogFlusher f)
Instantiate a SpyLog entry with an alternative log flusher. |
|
| Method Summary | |
void |
addFlusher(SpyLogFlusher f)
Add another log flusher to the pool. |
void |
log(SpyLogEntry msg)
Log an entry. |
void |
removeFlusher(SpyLogFlusher f)
Remove the given flusher. |
| Methods inherited from class net.spy.SpyObject |
getLogger |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SpyLog(String queueName)
public SpyLog(String queueName,
SpyLogFlusher f)
| Method Detail |
public void addFlusher(SpyLogFlusher f)
public void removeFlusher(SpyLogFlusher f)
public void log(SpyLogEntry msg)
msg - SpyLogEntry object to be logged.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||