class LoggerSharedState
Hierarchy
- class \OpenTelemetry\SDK\Logs\LoggerSharedState
Expanded class hierarchy of LoggerSharedState
File
-
vendor/
open-telemetry/ sdk/ Logs/ LoggerSharedState.php, line 10
Namespace
OpenTelemetry\SDK\LogsView source
class LoggerSharedState {
private ?bool $shutdownResult = null;
public function __construct(ResourceInfo $resource, LogRecordLimits $limits, LogRecordProcessorInterface $processor) {
}
public function hasShutdown() : bool {
return null !== $this->shutdownResult;
}
public function getResource() : ResourceInfo {
return $this->resource;
}
public function getProcessor() : LogRecordProcessorInterface {
return $this->processor;
}
public function getLogRecordLimits() : LogRecordLimits {
return $this->limits;
}
public function shutdown(?CancellationInterface $cancellation = null) : bool {
if ($this->shutdownResult !== null) {
return $this->shutdownResult;
}
$this->shutdownResult = $this->processor
->shutdown($cancellation);
return $this->shutdownResult;
}
public function forceFlush(?CancellationInterface $cancellation = null) : bool {
return $this->processor
->forceFlush($cancellation);
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
LoggerSharedState::$shutdownResult | private | property | |
LoggerSharedState::forceFlush | public | function | |
LoggerSharedState::getLogRecordLimits | public | function | |
LoggerSharedState::getProcessor | public | function | |
LoggerSharedState::getResource | public | function | |
LoggerSharedState::hasShutdown | public | function | |
LoggerSharedState::shutdown | public | function | |
LoggerSharedState::__construct | public | function |