|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.spi.commons.logging.Slf4jLogWriter
public class Slf4jLogWriter
LogWriter
implementation which uses SLF4J for persisting log messages.
Constructor Summary | |
---|---|
Slf4jLogWriter(org.slf4j.Logger log)
Create a new instance which uses the passed SLF4J logger for persisting the log messages. |
Method Summary | |
---|---|
void |
enter(String methodName,
Object[] args)
Logs the call at debug level is debug level is enabled. |
void |
error(String methodName,
Object[] args,
Exception e)
Logs the exception including a stack trace at debug level is debug level is enabled. |
void |
leave(String methodName,
Object[] args,
Object result)
Logs the call at debug level is debug level is enabled. |
long |
systemTime()
Returns System.currentTimeMillis(); Implementation specific time stamp which is logged along with each log message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Slf4jLogWriter(org.slf4j.Logger log)
log
- Method Detail |
---|
public long systemTime()
System.currentTimeMillis();Implementation specific time stamp which is logged along with each log message. The values returned by this method should be monotone with respect to the time they represent.
systemTime
in interface LogWriter
public void enter(String methodName, Object[] args)
enter
in interface LogWriter
methodName
- name of the method which a about to be calledargs
- arguments passed to the methods which is about to be called.public void leave(String methodName, Object[] args, Object result)
leave
in interface LogWriter
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 calledpublic void error(String methodName, Object[] args, Exception e)
error
in interface LogWriter
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 |