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

Breadcrumb

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

function Logging::getLogLevel

1 call to Logging::getLogLevel()
Logging::logLevel in vendor/open-telemetry/api/Behavior/Internal/Logging.php
Get defined OTEL_LOG_LEVEL, or default

File

vendor/open-telemetry/api/Behavior/Internal/Logging.php, line 71

Class

Logging
Logging utility functions for internal logging (of OpenTelemetry errors/warnings etc). This is not part of SDK configuration to avoid creating a dependency on SDK from any package which does logging. @todo this should be `@internal`, but deptrac is…

Namespace

OpenTelemetry\API\Behavior\Internal

Code

private static function getLogLevel() : int {
    $level = array_key_exists(self::OTEL_LOG_LEVEL, $_SERVER) ? $_SERVER[self::OTEL_LOG_LEVEL] : getenv(self::OTEL_LOG_LEVEL);
    if (!$level) {
        $level = ini_get(self::OTEL_LOG_LEVEL);
    }
    if (!$level) {
        $level = self::DEFAULT_LEVEL;
    }
    return self::level($level);
}

API Navigation

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