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.

Version:
$Revision: 1.1 $
Author:
Open Services Gateway Initiative
See Also:
LogReaderService, LogEntry, LogReaderService.addLogListener(LogListener), LogReaderService.removeLogListener(LogListener)

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


Copyright © 2009 IKS, ETH Zurich. All Rights Reserved.