Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. RfcLoggerTrait.php

function RfcLoggerTrait::alert

File

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

Class

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

Namespace

Drupal\Core\Logger

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal