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

Breadcrumb

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

function LoggerInterface::isEnabled

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

3 methods override LoggerInterface::isEnabled()
LateBindingLogger::isEnabled in vendor/open-telemetry/api/Logs/LateBindingLogger.php
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
Logger::isEnabled in vendor/open-telemetry/sdk/Logs/Logger.php
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
NoopLogger::isEnabled in vendor/open-telemetry/api/Logs/NoopLogger.php
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

File

vendor/open-telemetry/api/Logs/LoggerInterface.php, line 20

Class

LoggerInterface

Namespace

OpenTelemetry\API\Logs

Code

public function isEnabled() : bool;

API Navigation

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