public class PluginLogger
extends java.lang.Object
Logger class which contains 5. This class adds the messages to the Eclipse log view.| Constructor and Description |
|---|
PluginLogger() |
| Modifier and Type | Method and Description |
|---|---|
static void |
debug(java.lang.String pMessage)
Logs a debug message.
|
static void |
debug(java.lang.String pMessage,
java.lang.Throwable pExc)
Logs a debug message.
|
static void |
error(java.lang.String pMessage)
Logs an error message without cause exception.
|
static void |
error(java.lang.String pMessage,
java.lang.Throwable pExc)
Logs an error message an optionally the stack trace of the exception which causes the error.
|
static void |
info(java.lang.String pMessage)
Logs a information message.
|
static boolean |
isLevel(LogLevels pLevel)
Checks whether the logger will return a message of a certain level.
|
static void |
setLevel(LogLevels pLevel)
Changes the minimum level of the message printed to the log view.
|
static void |
warning(java.lang.String pMessage)
Logs a warning message.
|
static void |
warning(java.lang.String pMessage,
java.lang.Throwable pExc)
Logs a warning message caused by an exception.
|
public static void debug(java.lang.String pMessage,
java.lang.Throwable pExc)
pMessage - the message to logpExc - the exception causing the messagepublic static void debug(java.lang.String pMessage)
pMessage - the message to logpublic static void info(java.lang.String pMessage)
pMessage - the message to logpublic static void warning(java.lang.String pMessage)
pMessage - the message to logpublic static void warning(java.lang.String pMessage,
java.lang.Throwable pExc)
pMessage - the message to logpExc - exception raised. Could be nullpublic static void error(java.lang.String pMessage,
java.lang.Throwable pExc)
pMessage - Message to print in the error log viewpExc - Exception raised. Could be null.public static void error(java.lang.String pMessage)
pMessage - Message to print in the error log viewpublic static void setLevel(LogLevels pLevel)
pLevel - the level to setpublic static boolean isLevel(LogLevels pLevel)
pLevel - the level of the message to printtrue if the level is higher or equals to the current log level.