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;
13 * Helper class to route trace output.
16 public static int CONFIG = 0;
17 public static int WARNING = 2;
18 public static int SEVERE = 3;
19 public static int FINER = 4;
20 public static int FINEST = 5;
23 * Trace constructor comment.
30 * Trace the given text.
32 * @param s java.lang.String
34 public static void trace(int level, String s) {
35 Trace.trace(level, s, null);
39 * Trace the given message and exception.
41 * @param s java.lang.String
42 * @param t java.lang.Throwable
44 public static void trace(int level, String s, Throwable t) {
45 if (!WebBrowserUIPlugin.getInstance().isDebugging())
48 System.out.println(s);