Package org.libreoffice.ide.eclipse.core
Class PluginLogger
java.lang.Object
org.libreoffice.ide.eclipse.core.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidLogs a debug message.static voidLogs a debug message.static voidLogs an error message without cause exception.static voidLogs an error message an optionally the stack trace of the exception which causes the error.static voidLogs a information message.static booleanChecks whether the logger will return a message of a certain level.static voidChanges the minimum level of the message printed to the log view.static voidLogs a warning message.static voidLogs a warning message caused by an exception.
-
Constructor Details
-
PluginLogger
public PluginLogger()
-
-
Method Details
-
debug
Logs a debug message.- Parameters:
message- the message to logexc- the exception causing the message
-
debug
Logs a debug message.- Parameters:
message- the message to log
-
info
Logs a information message.- Parameters:
message- the message to log
-
warning
Logs a warning message.- Parameters:
message- the message to log
-
warning
Logs a warning message caused by an exception.- Parameters:
message- the message to logexc- exception raised. Could benull
-
error
Logs an error message an optionally the stack trace of the exception which causes the error.- Parameters:
message- Message to print in the error log viewexc- Exception raised. Could benull.
-
error
Logs an error message without cause exception.- Parameters:
message- Message to print in the error log view
-
setLevel
Changes the minimum level of the message printed to the log view.- Parameters:
level- the level to set
-
isLevel
Checks whether the logger will return a message of a certain level.- Parameters:
level- the level of the message to print- Returns:
trueif the level is higher or equals to the current log level.
-