You are here

public function TeeLogger::log in Backup and Migrate 5.0.x

Logs with an arbitrary level.

Parameters

mixed $level:

string $message:

array $context:

File

src/Core/Service/TeeLogger.php, line 34

Class

TeeLogger
@package Drupal\backup_migrate\Core\Tests\Service

Namespace

Drupal\backup_migrate\Core\Service

Code

public function log($level, $message, array $context = []) {
  foreach ($this
    ->getLoggers() as $logger) {
    $logger
      ->log($level, $message, $context);
  }
}