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

Breadcrumb

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

function LoggerInterface::alert

Action must be taken immediately.

Example: Entire website down, database unavailable, etc. This should trigger the SMS alerts and wake you up.

Parameters

mixed[] $context:

1 method overrides LoggerInterface::alert()
BaseIO::alert in vendor/composer/composer/src/Composer/IO/BaseIO.php

File

vendor/psr/log/src/LoggerInterface.php, line 37

Class

LoggerInterface
Describes a logger instance.

Namespace

Psr\Log

Code

public function alert(string|\Stringable $message, array $context = []) : void;

API Navigation

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