You are here

class RealisticDummyContentDebugLog in Realistic Dummy Content 3.x

Same name and namespace in other branches
  1. 8.2 api/src/includes/RealisticDummyContentDebugLog.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentDebugLog
  2. 7.2 api/src/includes/RealisticDummyContentDebugLog.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentDebugLog

This log class can be used whenever you need to log data.

Hierarchy

Expanded class hierarchy of RealisticDummyContentDebugLog

File

api/src/includes/RealisticDummyContentDebugLog.php, line 8

Namespace

Drupal\realistic_dummy_content_api\includes
View source
class RealisticDummyContentDebugLog implements RealisticDummyContentLogInterface {

  /**
   * {@inheritdoc}
   */
  public function log($text, $vars = []) {

    // @codingStandardsIgnoreStart
    // Cannot pass a litteral to t() here.
    debug(t($text, $vars));

    // @codingStandardsIgnoreEnd
  }

  /**
   * {@inheritdoc}
   */
  public function error($text, $vars = []) {

    // @codingStandardsIgnoreStart
    // Cannot pass a litteral to t() here.
    debug(t($text, $vars));

    // @codingStandardsIgnoreEnd
  }

}

Members

Namesort descending Modifiers Type Description Overrides
RealisticDummyContentDebugLog::error public function Add a log entry for an error. Overrides RealisticDummyContentLogInterface::error
RealisticDummyContentDebugLog::log public function Add a log entry for normal execution. Overrides RealisticDummyContentLogInterface::log