LoggerTest
extends TestCase
in package
Tags
Attributes
- #[CoversClass]
- \OpenTelemetry\SDK\Logs\Logger::class
Table of Contents
Properties
- $logWriter : LogWriterInterface|MockObject
- $processor : LogRecordProcessorInterface
- $scope : InstrumentationScope
- $sharedState : LoggerSharedState
Methods
- setUp() : void
- tearDown() : void
- test_does_not_log_if_disabled() : void
- test_enabled() : void
- test_log_record() : void
- test_logs_dropped_attributes() : void
- test_sets_observed_timestamp_on_emit() : void
Properties
$logWriter
private
LogWriterInterface|MockObject
$logWriter
$processor
private
LogRecordProcessorInterface
$processor
$scope
private
InstrumentationScope
$scope
$sharedState
private
LoggerSharedState
$sharedState
Methods
setUp()
public
setUp() : void
tearDown()
public
tearDown() : void
test_does_not_log_if_disabled()
public
test_does_not_log_if_disabled() : void
test_enabled()
public
test_enabled() : void
test_log_record()
public
test_log_record() : void
test_logs_dropped_attributes()
public
test_logs_dropped_attributes() : void
test_sets_observed_timestamp_on_emit()
public
test_sets_observed_timestamp_on_emit() : void