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 Type
    Method
    Description
    org.eclipse.core.runtime.IStatus
    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
    Creates an info status by the provided message.
    void
    log(org.eclipse.core.runtime.IStatus status)
     
    void
    logDebug(String message)
    Logs the provided message as INFO status if plug-in is in debug mode.
    void
    logError(String message)
    Creates and logs an error status by the provided message.
    void
    logError(String message, Throwable throwable)
    Creates and logs an error status by the provided message and the cause throwable.
    void
    logInfo(String message)
    Creates and logs an info status by the provided message.
  • Method Details

    • createInfoStatus

      org.eclipse.core.runtime.IStatus createInfoStatus(String message)
      Creates an info status by the provided message.
      Parameters:
      message - the status message, cannot be null
      Returns:
      the status created info status, never null
    • createErrorStatus

      org.eclipse.core.runtime.IStatus createErrorStatus(String message)
      Creates an error status by the provided message.
      Parameters:
      message - the status message, cannot be null
      Returns:
      the created error status, never null
    • createErrorStatus

      org.eclipse.core.runtime.IStatus createErrorStatus(String message, Throwable throwable)
      Creates an error status by the provided message and the cause throwable.
      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
    • log

      void log(org.eclipse.core.runtime.IStatus status)
    • logError

      void logError(String message)
      Creates and logs an error status by the provided message.
      Parameters:
      message - the status message, cannot be null
    • logInfo

      void logInfo(String message)
      Creates and logs an info status by the provided message.
      Parameters:
      message - the status message, cannot be null
    • logError

      void logError(String message, Throwable throwable)
      Creates and logs an error status by the provided message and the cause throwable.
      Parameters:
      message - the status message, cannot be null
      throwable - the cause throwable, can be null if not applicable
    • logDebug

      void logDebug(String message)
      Logs the provided message as INFO status if plug-in is in debug mode.
      Parameters:
      message - the message to log, cannot be null