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

Breadcrumb

  1. Drupal Core 11.1.x

ConsoleExporterFactory.php

Namespace

OpenTelemetry\SDK\Logs\Exporter

File

vendor/open-telemetry/sdk/Logs/Exporter/ConsoleExporterFactory.php

View source
<?php

declare (strict_types=1);
namespace OpenTelemetry\SDK\Logs\Exporter;

use OpenTelemetry\SDK\Logs\LogRecordExporterFactoryInterface;
use OpenTelemetry\SDK\Logs\LogRecordExporterInterface;
use OpenTelemetry\SDK\Registry;
class ConsoleExporterFactory implements LogRecordExporterFactoryInterface {
    public function create() : LogRecordExporterInterface {
        $transport = Registry::transportFactory('stream')->create('php://stdout', 'application/json');
        return new ConsoleExporter($transport);
    }

}

Classes

Title Deprecated Summary
ConsoleExporterFactory

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal