function Logging::logWriter
1 call to Logging::logWriter()
- LogsMessagesTrait::doLog in vendor/
open-telemetry/ api/ Behavior/ LogsMessagesTrait.php
File
-
vendor/
open-telemetry/ api/ Behavior/ Internal/ Logging.php, line 44
Class
- Logging
- Logging utility functions for internal logging (of OpenTelemetry errors/warnings etc). This is not part of SDK configuration to avoid creating a dependency on SDK from any package which does logging. @todo this should be `@internal`, but deptrac is…
Namespace
OpenTelemetry\API\Behavior\InternalCode
public static function logWriter() : LogWriterInterface {
self::$writer ??= (new LogWriterFactory())->create();
return self::$writer;
}