You are here

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

Logs with an arbitrary level.

Parameters

mixed $level:

string $message:

array $context:

File

src/Core/Service/StashLogger.php, line 29

Class

StashLogger
Saves log entries to memory to be processed during the current process.

Namespace

Drupal\backup_migrate\Core\Service

Code

public function log($level, $message, array $context = []) {
  $this->logs[] = [
    'level' => $level,
    'message' => $message,
    'context' => $context,
  ];
}