|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LogWriter
A LogWriter provides methods for persisting log messages by some implementation specific means. Implementations must be thread safe. That is, implementations must cope with any thread concurrently calling any method of this interface at any time.
Method Summary | |
---|---|
void |
enter(String methodName,
Object[] args)
Called right before a method of a SPI entity is called. |
void |
error(String methodName,
Object[] args,
Exception e)
Called right after a method of a SPI entity has been called and an exception was thrown. |
void |
leave(String methodName,
Object[] args,
Object result)
Called right after a method of a SPI entity has been called if no exception was thrown. |
long |
systemTime()
Implementation specific time stamp which is logged along with each log message. |
Method Detail |
---|
long systemTime()
void enter(String methodName, Object[] args)
methodName
- name of the method which a about to be calledargs
- arguments passed to the methods which is about to be called.void leave(String methodName, Object[] args, Object result)
methodName
- name of the method which has been calledargs
- arguments passed to the method which has been calledresult
- return value of the method which has been calledvoid error(String methodName, Object[] args, Exception e)
methodName
- name of the method which has been calledargs
- arguments passed to the method which has been callede
- exception which was thrown by the method which has
been called
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |