public class CachingSLF4JLogRecord extends Object implements SingleLogRecord
Constructor and Description |
---|
CachingSLF4JLogRecord(int index,
CachingSLF4JAppender cachingSLF4JAppender)
Make a caching log record, that exposes a log record at a given index as an MBean.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Unregisters this object as an mbean.
|
String |
getRecordString()
Get the log record on a given index from the top as a string.
|
public CachingSLF4JLogRecord(int index, CachingSLF4JAppender cachingSLF4JAppender)
index
- The index of this log record, counted from the top of the list.cachingSLF4JAppender
- The caching log handler this is an exposing view on.IOFailure
- on any trouble registering.public String getRecordString()
SingleLogRecord
getRecordString
in interface SingleLogRecord
public void close()
Copyright © 2005–2015 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.