public function UpdateLogger::log in Update helper 2.x
Same name and namespace in other branches
- 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_helperCode
public function log($level, $message, array $context = []) {
$this->logs[] = [
$level,
$message,
$context,
];
}