InMemoryLogExporter class
Log-record exporter that buffers records in memory for inspection.
- Implemented types
Constructors
- InMemoryLogExporter()
- Creates an exporter.
Properties
Methods
-
clear(
) → void - Clears the recorded log records. Call between tests.
-
export(
List< LogRecord> r) → Future<ExportResult> -
Exports a batch of log records.
override
-
findRecordsBySeverity(
Severity severity) → List< LogRecord> -
Returns every record with the given
severity. -
forceFlush(
) → Future< void> -
Forces the exporter to flush any pending log records.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
shutdown(
) → Future< void> -
Shuts down the exporter.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited