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

Breadcrumb

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

function LoggerTrait::emergency

System is unusable.

File

vendor/psr/log/src/LoggerTrait.php, line 18

Class

LoggerTrait
This is a simple Logger trait that classes unable to extend AbstractLogger (because they extend another class, etc) can include.

Namespace

Psr\Log

Code

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

API Navigation

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