089e8801b7a192f8c19b62b2c0dfb0b716eeb448
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf / src / org / eclipse / linuxtools / tmf / Tracer.java
1 package org.eclipse.linuxtools.tmf;
2
3 import org.eclipse.core.runtime.Platform;
4
5 public class Tracer {
6
7 static Boolean TRACE = Boolean.FALSE;
8
9 private static String pluginID = TmfCorePlugin.PLUGIN_ID;
10
11 public static void init() {
12 String traceKey = Platform.getDebugOption(pluginID + "/trace");
13
14 if (traceKey != null) {
15 TRACE = (new Boolean(traceKey)).booleanValue();
16 }
17 }
18
19 public static void trace(String message) {
20 if (TRACE) {
21 System.out.println(Thread.currentThread() + ": " + message);
22 }
23 }
24 }
This page took 0.03041 seconds and 4 git commands to generate.