LogDestination class abstract

A pluggable log sink. Implement this to route SDK logs to your own telemetry/file/network destination. Mirrors Swift's LogDestination protocol. This is a host-side interface (carries no wire payload) and so stays hand-written rather than moving to the proto contract.

Implementers

Constructors

LogDestination()

Properties

hashCode int
The hash code for this object.
no setterinherited
identifier String
Stable identifier for this destination (e.g. "console", "file"). Used to deduplicate registrations.
no setter
isAvailable bool
Whether this destination is currently available (e.g. network reachable, file handle open).
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

flush() → void
Force-flush any buffered records.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
write(LogEntry entry) → void
Receive a single log record.

Operators

operator ==(Object other) bool
The equality operator.
inherited