function RfcLoggerTrait::notice

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Logger/RfcLoggerTrait.php \Drupal\Core\Logger\RfcLoggerTrait::notice()
  2. 8.9.x core/lib/Drupal/Core/Logger/RfcLoggerTrait.php \Drupal\Core\Logger\RfcLoggerTrait::notice()
  3. 10 core/lib/Drupal/Core/Logger/RfcLoggerTrait.php \Drupal\Core\Logger\RfcLoggerTrait::notice()

File

core/lib/Drupal/Core/Logger/RfcLoggerTrait.php, line 55

Class

RfcLoggerTrait
A copy of \Psr\Log\LoggerTrait that uses RFC 5424 compliant log levels.

Namespace

Drupal\Core\Logger

Code

public function notice(string|\Stringable $message, array $context = []) : void {
    $this->log(RfcLogLevel::NOTICE, $message, $context);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.