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

Breadcrumb

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

function NullLogger::log

Logs with an arbitrary level.

Parameters

mixed[] $context:

Throws

\Psr\Log\InvalidArgumentException

File

vendor/psr/log/src/NullLogger.php, line 22

Class

NullLogger
This Logger can be used to avoid conditional log calls.

Namespace

Psr\Log

Code

public function log($level, string|\Stringable $message, array $context = []) : void {
    // noop
}

API Navigation

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