Class DefaultCheckLogAccessor

java.lang.Object
com.e1c.g5.v8.dt.internal.check.DefaultCheckLogAccessor
All Implemented Interfaces:
ICheckLogAccessor

public class DefaultCheckLogAccessor extends Object implements ICheckLogAccessor
Default implementation of the ICheckLogAccessor that uses the CheckPlugin default logging
  • Constructor Details

    • DefaultCheckLogAccessor

      public DefaultCheckLogAccessor()
  • Method Details

    • createErrorStatus

      public org.eclipse.core.runtime.IStatus createErrorStatus(String message)
      Description copied from interface: ICheckLogAccessor
      Creates an error status by the provided message.
      Specified by:
      createErrorStatus in interface ICheckLogAccessor
      Parameters:
      message - the status message, cannot be null
      Returns:
      the created error status, never null
    • createErrorStatus

      public org.eclipse.core.runtime.IStatus createErrorStatus(String message, Throwable throwable)
      Description copied from interface: ICheckLogAccessor
      Creates an error status by the provided message and the cause throwable.
      Specified by:
      createErrorStatus in interface ICheckLogAccessor
      Parameters:
      message - the status message, cannot be null
      throwable - the cause throwable, can be null if not applicable
      Returns:
      the created error status, never null
    • createInfoStatus

      public org.eclipse.core.runtime.IStatus createInfoStatus(String message)
      Description copied from interface: ICheckLogAccessor
      Creates an info status by the provided message.
      Specified by:
      createInfoStatus in interface ICheckLogAccessor
      Parameters:
      message - the status message, cannot be null
      Returns:
      the status created info status, never null
    • log

      public void log(org.eclipse.core.runtime.IStatus status)
      Specified by:
      log in interface ICheckLogAccessor
    • logDebug

      public void logDebug(String message)
      Description copied from interface: ICheckLogAccessor
      Logs the provided message as INFO status if plug-in is in debug mode.
      Specified by:
      logDebug in interface ICheckLogAccessor
      Parameters:
      message - the message to log, cannot be null
    • logError

      public void logError(String message)
      Description copied from interface: ICheckLogAccessor
      Creates and logs an error status by the provided message.
      Specified by:
      logError in interface ICheckLogAccessor
      Parameters:
      message - the status message, cannot be null
    • logError

      public void logError(String message, Throwable throwable)
      Description copied from interface: ICheckLogAccessor
      Creates and logs an error status by the provided message and the cause throwable.
      Specified by:
      logError in interface ICheckLogAccessor
      Parameters:
      message - the status message, cannot be null
      throwable - the cause throwable, can be null if not applicable
    • logInfo

      public void logInfo(String message)
      Description copied from interface: ICheckLogAccessor
      Creates and logs an info status by the provided message.
      Specified by:
      logInfo in interface ICheckLogAccessor
      Parameters:
      message - the status message, cannot be null