Commit | Line | Data |
---|---|---|
c392540b FC |
1 | /******************************************************************************* |
2 | * Copyright (c) 2011 Ericsson | |
3 | * | |
4 | * All rights reserved. This program and the accompanying materials are | |
5 | * made available under the terms of the Eclipse Public License v1.0 which | |
6 | * accompanies this distribution, and is available at | |
7 | * http://www.eclipse.org/legal/epl-v10.html | |
8 | * | |
9 | * Contributors: | |
10 | * Francois Chouinard - Initial API and implementation | |
11 | *******************************************************************************/ | |
12 | ||
13 | package org.eclipse.linuxtools.lttng.ui; | |
14 | ||
15 | /** | |
16 | * <b><u>LTTngUILogger</u></b> | |
17 | * <p> | |
18 | * A logging utility | |
19 | */ | |
20 | public class LTTngUILogger { | |
21 | ||
22 | public static void logInfo(String message) { | |
23 | LTTngUiPlugin.getDefault().getLogger().logInfo(message); | |
24 | } | |
25 | ||
26 | public static void logWarning(String message) { | |
27 | LTTngUiPlugin.getDefault().getLogger().logWarning(message); | |
28 | } | |
29 | ||
30 | public static void logError(Throwable exception) { | |
31 | logError("Unexpected exception", exception); //$NON-NLS-1$ | |
32 | } | |
33 | ||
34 | public static void logError(String message, Throwable exception) { | |
35 | LTTngUiPlugin.getDefault().getLogger().logError(message, exception); | |
36 | } | |
37 | ||
38 | } |