Copyright (c) 2006, 2011 IBM Corporation and others
This program and the accompanying materials are made
available under the terms of the Eclipse Public License 2.0 which
accompanies this distribution, and is available at
https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
/*******************************************************************************
* Copyright (c) 2006, 2011 IBM Corporation and others
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0 which
* accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
******************************************************************************/
package org.eclipse.equinox.log;
import org.osgi.service.log.*;
Extends the OSGi Log Service's LogReaderService to allow better control of log listeners.
See Also: @ThreadSafe Since: 3.7
/**
* Extends the OSGi Log Service's LogReaderService to allow better control of log listeners.
* @ThreadSafe
* @see LogListener
* @since 3.7
*/
public interface ExtendedLogReaderService extends LogReaderService {
Subscribes to LogEntry
objects.
This method registers a LogListener
object with the Log Reader
Service with a LogFilter
to allow pre-filtering of interesting log entries.
The LogListener.logged(LogEntry)
method will be
called for each LogEntry
object placed into the log that matches the filter.
Params: - listener – A
LogListener
object to register; the
LogListener
object is used to receive LogEntry
objects. - filter – A
LogFilter
object to register; the
LogFilter
object is used to filter LogEntry
objects before sending them to the associated LogListener
.
See Also:
/**
* Subscribes to <code>LogEntry</code> objects.
*
* <p>
* This method registers a <code>LogListener</code> object with the Log Reader
* Service with a <code>LogFilter</code> to allow pre-filtering of interesting log entries.
* The <code>LogListener.logged(LogEntry)</code> method will be
* called for each <code>LogEntry</code> object placed into the log that matches the filter.
*
* @param listener A <code>LogListener</code> object to register; the
* <code>LogListener</code> object is used to receive <code>LogEntry</code>
* objects.
* @param filter A <code>LogFilter</code> object to register; the
* <code>LogFilter</code> object is used to filter <code>LogEntry</code>
* objects before sending them to the associated <code>LogListener</code>.
* @see LogListener
* @see LogFilter
* @see LogEntry
* @see LogReaderService#addLogListener(LogListener)
*/
public void addLogListener(LogListener listener, LogFilter filter);
}