Class WriterLogWriter
java.lang.Object
org.apache.jackrabbit.spi.commons.logging.WriterLogWriter
- All Implemented Interfaces:
LogWriter
-
Constructor Summary
ConstructorsConstructorDescriptionWriterLogWriter(Writer log, String category) Create a new instance which uses the passed writer logger for persisting the log messages. -
Method Summary
Modifier and TypeMethodDescriptionvoidLogs the call at debug level is debug level is enabled.voidLogs the exception including a stack trace at debug level is debug level is enabled.voidLogs the call at debug level is debug level is enabled.longReturns
-
Constructor Details
-
WriterLogWriter
Create a new instance which uses the passed writer logger for persisting the log messages.- Parameters:
log- writer for outputcategory- log category
-
-
Method Details
-
systemTime
public long systemTime()ReturnsSystem.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.- Specified by:
systemTimein interfaceLogWriter- Returns:
-
enter
Logs the call at debug level is debug level is enabled. Called right before a method of a SPI entity is called. -
leave
Logs the call at debug level is debug level is enabled. Called right after a method of a SPI entity has been called if no exception was thrown. -
error
Logs the exception including a stack trace at debug level is debug level is enabled. Called right after a method of a SPI entity has been called and an exception was thrown.
-