Constructor and Description |
---|
WriterLogWriter(java.io.Writer log,
java.lang.String category)
Create a new instance which uses the passed writer logger for persisting
the log messages.
|
Modifier and Type | Method and Description |
---|---|
void |
enter(java.lang.String methodName,
java.lang.Object[] args)
Logs the call at debug level is debug level is enabled.
|
void |
error(java.lang.String methodName,
java.lang.Object[] args,
java.lang.Exception e)
Logs the exception including a stack trace at debug level is debug level is enabled.
|
void |
leave(java.lang.String methodName,
java.lang.Object[] args,
java.lang.Object result)
Logs the call at debug level is debug level is enabled.
|
long |
systemTime()
Returns
|
public WriterLogWriter(java.io.Writer log, java.lang.String category)
log
- writer for outputcategory
- log categorypublic 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(java.lang.String methodName, java.lang.Object[] args)
public void leave(java.lang.String methodName, java.lang.Object[] args, java.lang.Object result)
public void error(java.lang.String methodName, java.lang.Object[] args, java.lang.Exception e)
Copyright © 2010 - 2020 Adobe. All Rights Reserved