public final class DebugTools extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
enableIJLogging(boolean debug) |
static boolean |
enableLogging(String level)
Attempts to enable SLF4J logging via logback
without an external configuration file.
|
static String |
getFieldName(Class<?> c,
int value)
This method uses reflection to scan the values of the given class's
static fields, returning the first matching field's name.
|
static String |
getStackTrace(Throwable t)
Extracts the given exception's corresponding stack trace to a string.
|
public static String getStackTrace(Throwable t)
public static boolean enableLogging(String level)
level
- A string indicating the desired level
(i.e.: ALL, DEBUG, ERROR, FATAL, INFO, OFF, TRACE, WARN).public static boolean enableIJLogging(boolean debug)
Copyright © 2014 Open Microscopy Environment