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

Breadcrumb

  1. Drupal Core 11.1.x

NoopEventLogger.php

Namespace

OpenTelemetry\API\Logs

File

vendor/open-telemetry/api/Logs/NoopEventLogger.php

View source
<?php

declare (strict_types=1);
namespace OpenTelemetry\API\Logs;

use OpenTelemetry\Context\ContextInterface;
class NoopEventLogger implements EventLoggerInterface {
    public static function instance() : self {
        static $instance;
        $instance ??= new self();
        return $instance;
    }
    public function emit(string $name, mixed $body = null, ?int $timestamp = null, ?ContextInterface $context = null, Severity|int|null $severityNumber = null, iterable $attributes = []) : void {
    }

}

Classes

Title Deprecated Summary
NoopEventLogger

API Navigation

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