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
11 package net.sourceforge.phpeclipse.webbrowser.internal;
14 * Helper class to route trace output.
17 public static int CONFIG = 0;
19 public static int WARNING = 2;
21 public static int SEVERE = 3;
23 public static int FINER = 4;
25 public static int FINEST = 5;
28 * Trace constructor comment.
35 * Trace the given text.
40 public static void trace(int level, String s) {
41 Trace.trace(level, s, null);
45 * Trace the given message and exception.
52 public static void trace(int level, String s, Throwable t) {
53 if (!WebBrowserUIPlugin.getInstance().isDebugging())
56 System.out.println(s);