1 /**********************************************************************
2 * Copyright (c) 2003 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Common Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/cpl-v10.html
9 * IBM - Initial API and implementation
10 **********************************************************************/
11 package net.sourceforge.phpdt.monitor.core.internal;
13 * Helper class to route trace output.
16 public static byte CONFIG = 0;
17 public static byte WARNING = 1;
18 public static byte SEVERE = 2;
19 public static byte FINEST = 3;
21 public static byte PARSING = 4;
24 * Trace constructor comment.
31 * Trace the given text.
33 * @param s java.lang.String
35 public static void trace(byte level, String s) {
36 trace(level, s, null);
40 * Trace the given message and exception.
42 * @param s java.lang.String
43 * @param t java.lang.Throwable
45 public static void trace(byte level, String s, Throwable t) {
46 if (!MonitorPlugin.getInstance().isDebugging())
49 System.out.println(s);