Crate diagnostics_log

source ·
Expand description

Publish diagnostics as a stream of log messages.

Macros

Calls [init_publishing] and spawns the interest listener future as a fuchsia_async::Task`.
Initializes logging and detaches the publisher task.

Structs

Interest expresses the scope of clients’ desired diagnostics data, e.g. for filtering messages or controlling their generation.
Options to configure publishing.
A Publisher acts as broker, implementing tracing::Subscriber to receive diagnostic events from a component, and then forwarding that data on to a diagnostics service.

Enums

Tag derived from metadata.
Errors arising while forwarding a diagnostics stream to the environment.
The severity of a given record.

Traits

Callback for interest listeners

Functions

Creates a publisher and installs it as the global default.
Converts a tracing level filter to diagnostics interest.