OSGi™ Service Platform
Release 4 Version 4.1

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.

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

public 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

OSGi™ Service Platform
Release 4 Version 4.1

Copyright © OSGi Alliance (2000, 2007). All Rights Reserved. Licensed under the OSGi Specification License, Version 1.0