Knopflerfish OSGi 5.2.0

org.osgi.service.log
Interface LogListener

All Superinterfaces:
java.util.EventListener

public interface LogListener
extends java.util.EventListener

Subscribes to LogEntry objects from the LogReaderService.

A LogListener object may be registered with the Log Reader Service using the LogReaderService.addLogListener method. After the listener is registered, the logged method will be called for each LogEntry object created. The LogListener object may be unregistered by calling the LogReaderService.removeLogListener method.

Author:
$Id: 4e27a9415d892fa96a214e28a9b8843df78284c6 $
See Also:
LogReaderService, LogEntry, LogReaderService.addLogListener(LogListener), LogReaderService.removeLogListener(LogListener)
ThreadSafe

Method Summary
 void logged(LogEntry entry)
          Listener method called for each LogEntry object created.
 

Method Detail

logged

void logged(LogEntry entry)
Listener method called for each LogEntry object created.

As with all event listeners, this method should return to its caller as soon as possible.

Parameters:
entry - A LogEntry object containing log information.
See Also:
LogEntry

Knopflerfish OSGi 5.2.0