You are here

class DebugLog in Realistic Dummy Content 8

This log class can be used whenever you need a Log

Hierarchy

  • class \Drupal\realistic_dummy_content_api\loggers\DebugLog implements Log

Expanded class hierarchy of DebugLog

1 file declares its use of DebugLog
RealisticDummyContentDbTestCase.php in api/src/Tests/RealisticDummyContentDbTestCase.php
This file contains the testing code which requires the database. These tests are slower than the unit tests so we want to limit them.

File

api/src/loggers/DebugLog.php, line 16
Define autoload class.

Namespace

Drupal\realistic_dummy_content_api\loggers
View source
class DebugLog implements Log {
  public function log($text, $vars = array()) {
    debug(t($text, $vars));
  }
  public function error($text, $vars = array()) {
    debug(t($text, $vars));
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DebugLog::error public function Overrides Log::error
DebugLog::log public function Overrides Log::log