Package org.oddjob.logging
Interface LogArchiver
- All Known Implementing Classes:
AppenderArchiver,JMXClientJob,PollingLogArchiver,RemoteLogPoller,WebClientJob
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
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLogListener(LogListener l, Object component, LogLevel level, long last, int max) Add a listener to the archiver which will receive all missed events.voidremoveLogListener(LogListener l, Object component) Remove the LogListener.
-
Field Details
-
MAX_HISTORY
static final int MAX_HISTORY- See Also:
-
NO_LOG_AVAILABLE
-
-
Method Details
-
addLogListener
Add a listener to the archiver which will receive all missed events. The idea of receiving only missed events is to minimise network traffic when used remotely.Event numbers begin at 0. To receive all events, last must be -1.
- Parameters:
l- The logListener which will receive the events.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.archive- The archive to receive events for.
-
removeLogListener
Remove the LogListener.- Parameters:
l- The LogListener.
-