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

Breadcrumb

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

function Logging::level

Get level priority from level name

2 calls to Logging::level()
Logging::getLogLevel in vendor/open-telemetry/api/Behavior/Internal/Logging.php
LogsMessagesTrait::shouldLog in vendor/open-telemetry/api/Behavior/LogsMessagesTrait.php

File

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

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

public static function level(string $level) : int {
    $value = array_search($level, self::LEVELS);
    return $value ?: 1;
    
    //'info'
}

API Navigation

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