|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.spi.commons.logging.WriterLogWriter
public class WriterLogWriter
LogWriter implementation which uses a Writer for persisting log messages.
| Constructor Summary | |
|---|---|
WriterLogWriter(Writer log,
String category)
Create a new instance which uses the passed writer 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WriterLogWriter(Writer log,
String category)
log - writer for outputcategory - log category| 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 LogWritermethodName - 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 LogWritermethodName - 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 called
public void error(String methodName,
Object[] args,
Exception e)
error in interface LogWritermethodName - 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 | |||||||||