InMemoryExporter
in package
implements
LogRecordExporterInterface
Table of Contents
Interfaces
Properties
- $storage : ArrayObject
Methods
- __construct() : mixed
- export() : FutureInterface
- forceFlush() : bool
- getStorage() : ArrayObject
- shutdown() : bool
Properties
$storage read-only
private
ArrayObject
$storage
= new ArrayObject()
Methods
__construct()
public
__construct([ArrayObject $storage = new ArrayObject() ]) : mixed
Parameters
- $storage : ArrayObject = new ArrayObject()
export()
public
export(iterable<string|int, mixed> $batch[, CancellationInterface|null $cancellation = null ]) : FutureInterface
Parameters
- $batch : iterable<string|int, mixed>
- $cancellation : CancellationInterface|null = null
Tags
Return values
FutureInterfaceforceFlush()
public
forceFlush([CancellationInterface|null $cancellation = null ]) : bool
Parameters
- $cancellation : CancellationInterface|null = null
Return values
boolgetStorage()
public
getStorage() : ArrayObject
Return values
ArrayObjectshutdown()
public
shutdown([CancellationInterface|null $cancellation = null ]) : bool
Parameters
- $cancellation : CancellationInterface|null = null