1 /*******************************************************************************
2 * Copyright (c) 2007, 2010 Association for Decentralized Information Management
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * VTT Technical Research Centre of Finland - initial API and implementation
11 *******************************************************************************/
12 /*******************************************************************************
13 * Copyright (c) 2000, 2006 IBM Corporation and others.
14 * All rights reserved. This program and the accompanying materials
15 * are made available under the terms of the Eclipse Public License v1.0
16 * which accompanies this distribution, and is available at
17 * http://www.eclipse.org/legal/epl-v10.html
20 * IBM Corporation - initial API and implementation
21 *******************************************************************************/
22 package org.simantics.message;
24 import java.util.EventListener;
26 import org.eclipse.core.runtime.IStatus;
29 * A log listener is notified of entries added to a plug-in's log.
31 * This interface can be used without OSGi running.
33 * Clients may implement this interface.
36 public interface ILogListener extends EventListener {
38 * Notifies this listener that given status has been logged by
39 * a plug-in. The listener is free to retain or ignore this status.
41 * @param status the status being logged
42 * @param plugin the plugin of the log which generated this event
44 public void logging(IStatus status, String plugin);