1 37 38 package com.sun.j2ee.blueprints.util.tracer; 39 import java.util.logging.Logger ; 40 import java.util.logging.Level ; 41 42 46 public final class Debug { 47 48 private static Logger logger = Logger.getLogger("com.sun.j2ee.blueprints"); 49 50 public static void print(String msg) { 51 logger.log(Level.INFO, msg); 52 } 53 54 public static void print(Exception e, String msg) { 55 print((Throwable )e, msg); 56 } 57 58 public static void print(Exception e) { 59 print(e, null); 60 } 61 62 public static void print(Throwable t, String msg) { 63 logger.log(Level.WARNING, "Received throwable with Message: "+msg, t); 64 } 65 66 public static void print(Throwable t) { 67 print(t, null); 68 } 69 } 70 | Popular Tags |