1 19 package org.netbeans.modules.j2ee.weblogic9.util; 20 21 28 public class WLDebug { 29 30 35 private static boolean isEnabled = System.getProperty("j2eeplugins.weblogic9.debug") != null; 37 40 public static boolean isEnabled() { 41 return isEnabled; 42 } 43 44 49 public static void notify(String message) { 50 System.err.println("j2eeplugins.weblogic9 --- " + message); } 52 53 60 public static void notify(Class clazz, String message) { 61 System.err.println("j2eeplugins.weblogic9 --- [" + clazz.getName() + "]: " + message); } 63 64 67 public static void printStack() { 68 StackTraceElement [] stack = new Exception ().getStackTrace(); 69 70 for (int i = 3; i < stack.length; i++) { 71 System.err.println("j2eeplugins.weblogic9 --- " + stack[i]); } 73 } 74 75 } 76 | Popular Tags |