LogReaderService
Syntax
public interface LogReaderService
Description
The LogReaderService provides methods to read LogEntry objects from the log. Two ways are provided to read LogEntry objects.
The primary way to receive LogEntry objects is to register a LogListener object which will be called at the LogListener.logged(LogEntry) method for each entry added to the log.
To receive past LogEntry objects, getLog() can be called which will return an Enumeration of all LogEntry objects in the log.
Member Summary | |
---|---|
Methods | |
public void | addLogListener(LogListener) |
Subscribe to LogEntry objects. | |
public Enumeration | getLog() |
Returns an enumeration of all LogEntry objects in the log. | |
public void | removeLogListener(LogListener) |
Unsubscribe to LogEntry objects. ... |
Get Programming Open Service Gateways with Java Embedded Server™ Technology now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.