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