- // ------------------------------------------------------------------------
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.core.runtime.Plugin#start(org.osgi.framework.BundleContext)
- */
- @Override
- public void start(BundleContext context) throws Exception {
- super.start(context);
- setDefault(this);
- TmfCoreTracer.init();
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
- */
- @Override
- public void stop(BundleContext context) throws Exception {
- TmfCoreTracer.stop();
- setDefault(null);
- super.stop(context);
- }
-
- // ------------------------------------------------------------------------
- // Log INFO
+ // ------------------------------------------------------------------------
+
+ @Override
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ setDefault(this);
+ TmfCoreTracer.init();
+ /* Initialize the trace manager */
+ TmfTraceManager.getInstance();
+ }
+
+ @Override
+ public void stop(BundleContext context) throws Exception {
+ TmfCoreTracer.stop();
+ setDefault(null);
+ super.stop(context);
+ }
+
+
+ // ------------------------------------------------------------------------
+ // Log an IStatus
+ // ------------------------------------------------------------------------
+
+ /**
+ * Log an IStatus object directly
+ *
+ * @param status
+ * The status to log
+ */
+ public static void log(IStatus status) {
+ fPlugin.getLog().log(status);
+ }
+
+ // ------------------------------------------------------------------------
+ // Log INFO