LogSupportpublic class LogSupport extends Object
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 boolean | isLoggable()
return debug || logger.isLoggable(level);
| public static void | log(java.lang.String msg)
if (debug)
System.out.println(msg);
logger.log(level, msg);
| public static void | log(java.lang.String msg, java.lang.Throwable t)
if (debug)
System.out.println(msg + "; Exception: " + t);
logger.log(level, msg, t);
|
|