Skip to main content

Module log

Module log 

Source
Expand description

Configures structured logging and in-memory capture.

The module builds tracing layers for supported output targets. It also exposes scoped capture and reload controls to the server.

Re-exports§

pub use self::capture::Capture;
pub use self::console::ConsoleFormat;
pub use self::console::ConsoleWriter;
pub use self::console::ansi_enabled;
pub use self::console::is_systemd_mode;
pub use self::console::is_terminal_mode;

Modules§

capture
Ephemeral tracing-event capture.
color
HTML color values for log levels.
console
Console formatting and output routing.
fmt
HTML and Markdown formatting for captured log events.
fmt_span
Parsing for tracing span-lifecycle formatting modes.
journald
Native systemd journal submission and field recording.
reload 🔒
suppress 🔒

Structs§

EnvFilter
A [Layer] which filters spans and events based on a set of filter directives.
Event
Events represent single points in time where something occurred during the execution of a program.
Level
Describes the level of verbosity of a span or event.
LogLevelReloadHandles
Named collection of type-erased log-filter reload handles.
Logging
Owns the server’s shared logging and tracing state.
Metadata
Metadata describing a span or event.
Suppress
Temporarily suppresses the console log subscriber layer.

Traits§

ReloadHandle
Type-erased interface to a tracing subscriber reload handle.
Subscriber
Trait representing the functions required to collect trace data.