You are here

public function Logger::addRecord in Monolog 2.x

Same name and namespace in other branches
  1. 8 src/Logger/Logger.php \Drupal\monolog\Logger\Logger::addRecord()

File

src/Logger/Logger.php, line 41

Class

Logger
Logger class for the Drupal Monolog module.

Namespace

Drupal\monolog\Logger

Code

public function addRecord($level, $message, array $context = []) : bool {
  if (array_key_exists($level, $this->levelTranslation)) {
    $level = $this->levelTranslation[$level];
  }
  return parent::addRecord($level, $message, $context);
}