public interface LogWriter
Modifier and Type | Method and Description |
---|---|
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.
|
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 calledCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.