ttrss/vendor/open-telemetry/api/Logs/NoopLogger.php

34 lines
525 B
PHP
Raw Normal View History

2023-10-20 14:12:29 +00:00
<?php
declare(strict_types=1);
namespace OpenTelemetry\API\Logs;
use Psr\Log\LoggerTrait;
class NoopLogger implements LoggerInterface
{
use LoggerTrait;
public static function getInstance(): self
{
static $instance;
return $instance ??= new self();
}
/**
* @codeCoverageIgnore
*/
public function emit(LogRecord $logRecord): void
{
}
/**
* @codeCoverageIgnore
*/
public function log($level, $message, array $context = []): void
{
}
}