public interface LogArchiver
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_HISTORY |
static LogEvent |
NO_LOG_AVAILABLE |
| Modifier and Type | Method and Description |
|---|---|
void |
addLogListener(LogListener l,
java.lang.Object component,
LogLevel level,
long last,
int max)
Add a listener to the archiver which will receive all missed
events.
|
void |
removeLogListener(LogListener l,
java.lang.Object component)
Remove the LogListener.
|
static final int MAX_HISTORY
static final LogEvent NO_LOG_AVAILABLE
void addLogListener(LogListener l, java.lang.Object component, LogLevel level, long last, int max)
Event numbers begin at 0. To receive all events, last must be -1.
l - The logListener which will receive the events.archive - The archive to receive events for.level - The level of events required.last - The last event number received. The LogArchive will
not send messages from before this number.max - The maximum messages to send up to the most recent.void removeLogListener(LogListener l, java.lang.Object component)
l - The LogListener.