|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface LogArchiver
A LogArchiver is something which has archived away log messages for different components. A components archived log messages are identified by an archive name so that just messages for a component (or archive) can be retrieved.
| Field Summary | |
|---|---|
static int |
MAX_HISTORY
|
static LogEvent |
NO_LOG_AVAILABLE
|
| Method Summary | |
|---|---|
void |
addLogListener(LogListener l,
Object component,
LogLevel level,
long last,
int max)
Add a listener to the archiver which will receive all missed events. |
void |
removeLogListener(LogListener l,
Object component)
Remove the LogListener. |
| Field Detail |
|---|
static final int MAX_HISTORY
static final LogEvent NO_LOG_AVAILABLE
| Method Detail |
|---|
void addLogListener(LogListener l,
Object component,
LogLevel level,
long last,
int max)
Event numbers begin at 0. To recieve all events, last must be -1.
l - The logListener which will recieve the events.archive - The archive to receive events for.level - The level of events required.last - The last event number recieved. 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,
Object component)
l - The LogListener.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||