Constructor and Description |
---|
WriterLogWriter(Writer log,
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(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
|
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)
public void leave(String methodName, Object[] args, Object result)
Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.