You are here

public function ApigeeEdgeDebugToFileLogger::log in Apigee Edge 8

Overrides SysLog::log

File

tests/modules/apigee_edge_test/src/Logger/ApigeeEdgeDebugToFileLogger.php, line 58

Class

ApigeeEdgeDebugToFileLogger
Logs Apigee Edge debug messages to a file in the root of Drupal.

Namespace

Drupal\apigee_edge_test\Logger

Code

public function log($level, $message, array $context = []) {

  // Only log messages from our debug module.
  if ($context['channel'] === 'apigee_edge_debug') {
    parent::log($level, $message, $context);
  }
}