01: /*******************************************************************************
02: * Copyright (c) 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * 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: *******************************************************************************/package org.eclipse.jface.util;
12:
13: import org.eclipse.core.runtime.IStatus;
14:
15: /**
16: * A mechanism to log errors throughout JFace.
17: * <p>
18: * Clients may provide their own implementation to change
19: * how errors are logged from within JFace.
20: * </p>
21: *
22: * @see org.eclipse.jface.util.Policy#getLog()
23: * @see org.eclipse.jface.util.Policy#setLog(ILogger)
24: * @since 3.1
25: */
26: public interface ILogger {
27:
28: /**
29: * Logs the given status.
30: *
31: * @param status the status to log
32: */
33: public void log(IStatus status);
34:
35: }
|