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

Breadcrumb

  1. Drupal Core 11.1.x

LoggerInterface.php

Same filename in this branch
  1. 11.1.x vendor/psr/log/src/LoggerInterface.php

Namespace

OpenTelemetry\API\Logs

File

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

View source
<?php

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

interface LoggerInterface {
    
    /**
     * This method should only be used when implementing a `log appender`
     * @see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.32.0/specification/logs/bridge-api.md#artifact-naming
     */
    public function emit(LogRecord $logRecord) : void;
    
    /**
     * Determine if the logger is enabled. Logs bridge API authors SHOULD call this method each time they
     * are about to generate a LogRecord, to avoid performing computationally expensive work.
     * @experimental
     */
    public function isEnabled() : bool;

}

Interfaces

Title Deprecated Summary
LoggerInterface

API Navigation

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