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\InternalCode
public static function level(string $level) : int {
$value = array_search($level, self::LEVELS);
return $value ?: 1;
//'info'
}