public final class Tracer extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isDebugging()
Return true if the plugin is debugging
|
static void |
log(int severity,
String message,
boolean raisedException)
Log something
|
static void |
logError(String error,
boolean raisedException)
Log an error
|
static void |
logExceptionError(String message,
Exception raisedException)
Log an error
|
static void |
logExceptionWarning(String message,
Exception raisedException)
Log warning
|
static void |
logInfo(String info)
Log an info
|
static void |
logInfo(String info,
boolean raisedException)
Log info if the plugin is tracing
|
public static boolean isDebugging()
public static void logInfo(String info, boolean raisedException)
info - Info you want to lograisedException - if true the the trace raise an exceptionpublic static void logInfo(String info)
info - Info you want to logpublic static void logError(String error, boolean raisedException)
error - Message you want to lograisedException - if true the the trace raise an exceptionpublic static void log(int severity,
String message,
boolean raisedException)
severity - Severity of what is going to be logged see IStatus constantsmessage - Message to lograisedException - if true raise an exceptionpublic static void logExceptionError(String message, Exception raisedException)
message - Message you want to lograisedException - the exception to raise