|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openoffice.ide.eclipse.core.PluginLogger
public class PluginLogger
This class is the plugin central log singleton. It supports 4 levels of
messages on the contrary of the Java Logger
class which
contains 5. This class adds the messages to the Eclipse log view.
Constructor Summary | |
---|---|
PluginLogger()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PluginLogger()
Method Detail |
---|
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 null
public 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 print
true
if the level is higher or equals to the
current log level.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |