You are here

public function UpdateLogger::log in Update helper 2.x

Same name and namespace in other branches
  1. 8 src/UpdateLogger.php \Drupal\update_helper\UpdateLogger::log()

File

src/UpdateLogger.php, line 45

Class

UpdateLogger
Helper service for logging in update hooks provided by update helper.

Namespace

Drupal\update_helper

Code

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