Package com.e1c.g5.v8.dt.internal.check
Interface ICheckLogAccessor
- All Known Implementing Classes:
DefaultCheckLogAccessor
public interface ICheckLogAccessor
The log accessing abstraction that allows to change the logging medium without client code changes
-
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.core.runtime.IStatus
createErrorStatus
(String message) Creates an error status by the provided message.org.eclipse.core.runtime.IStatus
createErrorStatus
(String message, Throwable throwable) Creates an error status by the provided message and the cause throwable.org.eclipse.core.runtime.IStatus
createInfoStatus
(String message) Creates an info status by the provided message.void
log
(org.eclipse.core.runtime.IStatus status) void
Logs the provided message asINFO
status if plug-in is in debug mode.void
Creates and logs an error status by the provided message.void
Creates and logs an error status by the provided message and the cause throwable.void
Creates and logs an info status by the provided message.
-
Method Details
-
createInfoStatus
Creates an info status by the provided message.- Parameters:
message
- the status message, cannot benull
- Returns:
- the status created info status, never
null
-
createErrorStatus
Creates an error status by the provided message.- Parameters:
message
- the status message, cannot benull
- Returns:
- the created error status, never
null
-
createErrorStatus
Creates an error status by the provided message and the cause throwable.- Parameters:
message
- the status message, cannot benull
throwable
- the cause throwable, can benull
if not applicable- Returns:
- the created error status, never
null
-
log
void log(org.eclipse.core.runtime.IStatus status) -
logError
Creates and logs an error status by the provided message.- Parameters:
message
- the status message, cannot benull
-
logInfo
Creates and logs an info status by the provided message.- Parameters:
message
- the status message, cannot benull
-
logError
Creates and logs an error status by the provided message and the cause throwable.- Parameters:
message
- the status message, cannot benull
throwable
- the cause throwable, can benull
if not applicable
-
logDebug
Logs the provided message asINFO
status if plug-in is in debug mode.- Parameters:
message
- the message to log, cannot benull
-