FileDocCategorySizeDatePackage
LogSupport.javaAPI DocGlassfish v2 API2924Mon May 14 15:29:50 BST 2007com.sun.activation.registries

LogSupport

public class LogSupport extends Object
Logging related methods.

Fields Summary
private static boolean
debug
private static Logger
logger
private static final Level
level
Constructors Summary
private LogSupport()
Constructor.


     
	try {
	    debug = Boolean.getBoolean("javax.activation.debug");
	} catch (Throwable t) {
	    // ignore any errors
	}
	logger = Logger.getLogger("javax.activation");
    
	// private constructor, can't create instances
    
Methods Summary
public static booleanisLoggable()

	return debug || logger.isLoggable(level);
    
public static voidlog(java.lang.String msg)

	if (debug)
	    System.out.println(msg);
	logger.log(level, msg);
    
public static voidlog(java.lang.String msg, java.lang.Throwable t)

	if (debug)
	    System.out.println(msg + "; Exception: " + t);
	logger.log(level, msg, t);