class NoopEventLogger
Hierarchy
- class \OpenTelemetry\API\Logs\NoopEventLogger implements \OpenTelemetry\API\Logs\EventLoggerInterface
Expanded class hierarchy of NoopEventLogger
File
-
vendor/
open-telemetry/ api/ Logs/ NoopEventLogger.php, line 9
Namespace
OpenTelemetry\API\LogsView source
class NoopEventLogger implements EventLoggerInterface {
public static function instance() : self {
static $instance;
$instance ??= new self();
return $instance;
}
public function emit(string $name, mixed $body = null, ?int $timestamp = null, ?ContextInterface $context = null, Severity|int|null $severityNumber = null, iterable $attributes = []) : void {
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
NoopEventLogger::emit | public | function | Overrides EventLoggerInterface::emit | |
NoopEventLogger::instance | public static | function |