summaryrefslogtreecommitdiff
path: root/vendor/open-telemetry/api/Logs/LoggerProviderInterface.php
blob: e60353de20571d37f8d85218fb3cc44a3306e7e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

declare(strict_types=1);

namespace OpenTelemetry\API\Logs;

/**
 * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/logs/bridge-api.md#get-a-logger
 */
interface LoggerProviderInterface
{
    public function getLogger(
        string $name,
        ?string $version = null,
        ?string $schemaUrl = null,
        iterable $attributes = [] //instrumentation scope attributes
    ): LoggerInterface;
}