Package com.e1c.g5.v8.dt.internal.check
Class DefaultCheckLogAccessor
java.lang.Object
com.e1c.g5.v8.dt.internal.check.DefaultCheckLogAccessor
- All Implemented Interfaces:
ICheckLogAccessor
Default implementation of the
ICheckLogAccessor
that uses the CheckPlugin
default logging-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
DefaultCheckLogAccessor
public DefaultCheckLogAccessor()
-
-
Method Details
-
createErrorStatus
Description copied from interface:ICheckLogAccessor
Creates an error status by the provided message.- Specified by:
createErrorStatus
in interfaceICheckLogAccessor
- Parameters:
message
- the status message, cannot benull
- Returns:
- the created error status, never
null
-
createErrorStatus
Description copied from interface:ICheckLogAccessor
Creates an error status by the provided message and the cause throwable.- Specified by:
createErrorStatus
in interfaceICheckLogAccessor
- Parameters:
message
- the status message, cannot benull
throwable
- the cause throwable, can benull
if not applicable- Returns:
- the created error status, never
null
-
createInfoStatus
Description copied from interface:ICheckLogAccessor
Creates an info status by the provided message.- Specified by:
createInfoStatus
in interfaceICheckLogAccessor
- Parameters:
message
- the status message, cannot benull
- Returns:
- the status created info status, never
null
-
log
public void log(org.eclipse.core.runtime.IStatus status) - Specified by:
log
in interfaceICheckLogAccessor
-
logDebug
Description copied from interface:ICheckLogAccessor
Logs the provided message asINFO
status if plug-in is in debug mode.- Specified by:
logDebug
in interfaceICheckLogAccessor
- Parameters:
message
- the message to log, cannot benull
-
logError
Description copied from interface:ICheckLogAccessor
Creates and logs an error status by the provided message.- Specified by:
logError
in interfaceICheckLogAccessor
- Parameters:
message
- the status message, cannot benull
-
logError
Description copied from interface:ICheckLogAccessor
Creates and logs an error status by the provided message and the cause throwable.- Specified by:
logError
in interfaceICheckLogAccessor
- Parameters:
message
- the status message, cannot benull
throwable
- the cause throwable, can benull
if not applicable
-
logInfo
Description copied from interface:ICheckLogAccessor
Creates and logs an info status by the provided message.- Specified by:
logInfo
in interfaceICheckLogAccessor
- Parameters:
message
- the status message, cannot benull
-