Since 1.4, org. is the
preferred way to obtain LogEntry objects.
The LogReaderService provides two ways to obtain LogEntry objects:
LogEntry objects is to register a
LogListener object whose LogListener#logged(LogEntry) method
will be called for each entry added to the log.LogEntry objects, the getLog() method can
be called which will return an Enumeration of the LogEntry
objects in the log.| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Enumeration | |
| public void | removeLogListener(LogListener
A listener)LogListener object to unregister.Unsubscribes to |
| addLogListener | back to summary |
|---|---|
| public void addLogListener(LogListener listener) Subscribes to
This method registers a
When a bundle which registers a
If this Log Reader Service's list of listeners already contains a
listener
Since 1.4,
| |
| getLog | back to summary |
|---|---|
| public Enumeration Returns an
Each element of the enumeration is a
| |
| removeLogListener | back to summary |
|---|---|
| public void removeLogListener(LogListener listener) Unsubscribes to
This method unregisters a
If
Since 1.4,
| |