Crate diagnostics_log

Source
Expand description

Provides the tracing::Subscriber implementation that allows to publish tracing events to Fuchsia Logging System. This library isn’t Fuchsia-specific and provides a general tracing::Subscriber that allows the library to also be used in the host.

Macros§

  • Logs every N seconds using an Atomic variable to keep track of the time. This will have a higher performance impact on ARM compared to regular logging due to the use of an atomic.

Structs§

  • Options to configure publishing. This is for initialization of logs, it’s a superset of PublisherOptions.
  • 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.
  • Options to configure a Publisher.
  • Arguments to create a record for testing purposes.

Enums§

  • Tag derived from metadata.
  • Errors arising while forwarding a diagnostics stream to the environment.
  • Severities a log message can have, often called the log’s “level”.

Traits§

Functions§

  • Initializes logging with the given options.
  • Initializes logging with the given options.
  • Sets the global minimum log severity. IMPORTANT: this function can panic if initialize wasn’t called before.