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 | ||
638eac44 FC |
13 | package org.eclipse.linuxtools.internal.lttng.ui; |
14 | ||
c392540b FC |
15 | |
16 | /** | |
17 | * <b><u>LTTngUILogger</u></b> | |
18 | * <p> | |
19 | * A logging utility | |
20 | */ | |
21 | public class LTTngUILogger { | |
22 | ||
23 | public static void logInfo(String message) { | |
638eac44 | 24 | Activator.getDefault().getLogger().logInfo(message); |
c392540b FC |
25 | } |
26 | ||
27 | public static void logWarning(String message) { | |
638eac44 | 28 | Activator.getDefault().getLogger().logWarning(message); |
c392540b FC |
29 | } |
30 | ||
31 | public static void logError(Throwable exception) { | |
32 | logError("Unexpected exception", exception); //$NON-NLS-1$ | |
33 | } | |
34 | ||
35 | public static void logError(String message, Throwable exception) { | |
638eac44 | 36 | Activator.getDefault().getLogger().logError(message, exception); |
c392540b FC |
37 | } |
38 | ||
39 | } |