KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jface > util > ILogger


1 /*******************************************************************************
2  * Copyright (c) 2005 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  * Chris Gross (schtoo@schtoo.com) - initial API and implementation
10  * (bug 49497 [RCP] JFace dependency on org.eclipse.core.runtime enlarges standalone JFace applications)
11  *******************************************************************************/

12
13 package org.eclipse.jface.util;
14
15 import org.eclipse.core.runtime.IStatus;
16
17 /**
18  * A mechanism to log errors throughout JFace.
19  * <p>
20  * Clients may provide their own implementation to change
21  * how errors are logged from within JFace.
22  * </p>
23  *
24  * @see org.eclipse.jface.util.Policy#getLog()
25  * @see org.eclipse.jface.util.Policy#setLog(ILogger)
26  * @since 3.1
27  */

28 public interface ILogger {
29     
30     /**
31      * Logs the given status.
32      *
33      * @param status the status to log
34      */

35     public void log(IStatus status);
36
37 }
38
Popular Tags