function Logger::__construct
Same name in this branch
- 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\LogsCode
public function __construct(LoggerSharedState $loggerSharedState, InstrumentationScopeInterface $scope, ?Configurator $configurator = null) {
$this->config = $configurator ? $configurator->resolve($scope) : LoggerConfig::default();
}