Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*    */ package com.sun.activation.registries;
 /*    */ 
 /*    */ import java.io.PrintStream;
 /*    */ import java.util.logging.Level;
 /*    */ import java.util.logging.Logger;
 /*    */ 
 /*    */ public class LogSupport
 /*    */ {
 /* 37 */   private static boolean debug = false;
/*    */   private static Logger logger;
/* 39 */   private static final Level level = .;
/*    */ 
/*    */   public static void log(String msg)
/*    */   {
/* 58 */     if (debug)
/* 59 */       System.out.println(msg);
/* 60 */     logger.log(level, msg);
/*    */   }
/*    */ 
/*    */   public static void log(String msgThrowable t) {
/* 64 */     if (debug)
/* 65 */       System.out.println(msg + "; Exception: " + t);
/* 66 */     logger.log(level, msg, t);
/*    */   }
/*    */ 
/*    */   public static boolean isLoggable() {
/* 70 */     return (debug) || (logger.isLoggable(level));
/*    */   }
/*    */ 
/*    */   static
/*    */   {
/*    */     try
/*    */     {
/* 43 */       debug = Boolean.getBoolean("javax.activation.debug");
/*    */     }
/*    */     catch (Throwable t) {
/*    */     }
/* 47 */     logger = Logger.getLogger("javax.activation");
/*    */   }
/*    */ }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/thirdparty-all.jar
 * Qualified Name:     com.sun.activation.registries.LogSupport
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X