Internalize lttng.ui APIs
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.ui / src / org / eclipse / linuxtools / internal / lttng / ui / LTTngUILogger.java
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.internal.lttng.ui;
14
15 import org.eclipse.linuxtools.lttng.ui.Activator;
16
17 /**
18 * <b><u>LTTngUILogger</u></b>
19 * <p>
20 * A logging utility
21 */
22 public class LTTngUILogger {
23
24 public static void logInfo(String message) {
25 Activator.getDefault().getLogger().logInfo(message);
26 }
27
28 public static void logWarning(String message) {
29 Activator.getDefault().getLogger().logWarning(message);
30 }
31
32 public static void logError(Throwable exception) {
33 logError("Unexpected exception", exception); //$NON-NLS-1$
34 }
35
36 public static void logError(String message, Throwable exception) {
37 Activator.getDefault().getLogger().logError(message, exception);
38 }
39
40 }
This page took 0.031367 seconds and 5 git commands to generate.