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

Breadcrumb

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

function Logger::__construct

Same name in this branch
  1. 11.1.x vendor/symfony/http-kernel/Log/Logger.php \Symfony\Component\HttpKernel\Log\Logger::__construct()

@internal

Parameters

Configurator<LoggerConfig>|null $configurator:

File

vendor/open-telemetry/sdk/Logs/Logger.php, line 28

Class

Logger
Note that this logger class is deliberately NOT psr-3 compatible, per spec: "Note: this document defines a log backend API. The API is not intended to be called by application developers directly."

Namespace

OpenTelemetry\SDK\Logs

Code

public function __construct(LoggerSharedState $loggerSharedState, InstrumentationScopeInterface $scope, ?Configurator $configurator = null) {
    $this->config = $configurator ? $configurator->resolve($scope) : LoggerConfig::default();
}
RSS feed
Powered by Drupal