1 /******************************************************************************* 2 * Copyright (c) 2000, 2007 IBM Corporation and others. 3 * 4 * This program and the accompanying materials 5 * are made available under the terms of the Eclipse Public License 2.0 6 * which accompanies this distribution, and is available at 7 * https://www.eclipse.org/legal/epl-2.0/ 8 * 9 * SPDX-License-Identifier: EPL-2.0 10 * 11 * Contributors: 12 * IBM Corporation - initial API and implementation 13 *******************************************************************************/ 14 package org.eclipse.core.runtime; 15 16 import java.util.EventListener; 17 18 /** 19 * A log listener is notified of entries added to a plug-in's log. 20 * <p> 21 * This interface can be used without OSGi running. 22 * </p><p> 23 * Clients may implement this interface. 24 * </p> 25 */ 26 public interface ILogListener extends EventListener { 27 /** 28 * Notifies this listener that given status has been logged by 29 * a plug-in. The listener is free to retain or ignore this status. 30 * 31 * @param status the status being logged 32 * @param plugin the plugin of the log which generated this event 33 */ logging(IStatus status, String plugin)34 public void logging(IStatus status, String plugin); 35 } 36