Package org.eclipse.equinox.log
Interface ExtendedLogReaderService
- All Superinterfaces:
LogReaderService
Extends the OSGi Log Service's LogReaderService to allow better control of log listeners.
- Since:
- 3.7
- See Also:
- Thread Safe:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addLogListener
(LogListener listener, LogFilter filter) Subscribes toLogEntry
objects.Methods inherited from interface org.osgi.service.log.LogReaderService
addLogListener, getLog, removeLogListener
-
Method Details
-
addLogListener
Subscribes toLogEntry
objects.This method registers a
LogListener
object with the Log Reader Service with aLogFilter
to allow pre-filtering of interesting log entries. TheLogListener.logged(LogEntry)
method will be called for eachLogEntry
object placed into the log that matches the filter.- Parameters:
listener
- ALogListener
object to register; theLogListener
object is used to receiveLogEntry
objects.filter
- ALogFilter
object to register; theLogFilter
object is used to filterLogEntry
objects before sending them to the associatedLogListener
.- See Also:
-