Skip to main content

Crate base_console

Crate base_console 

Source
Expand description

Automatic terminal and JSON output for ordinary tracing events.

Applications call init once. Libraries continue using tracing directly. For existing subscribers and isolated captures, compose Console::layer instead.

base_console::init();
tracing::info!(connections = 3_u64, "Server started");

Macros§

failure
Emit a captured Failure as an error event at the caller’s target and source location.

Structs§

Console
Configure console output without selecting a runtime or installing global state.
Failure
An error with diagnostics captured where it is wrapped, which can be retained and reported later.

Enums§

ConsoleInitError
Console setup failed before normal application logging began.
OutputFormat
The representation written by the console.

Functions§

init
Install a global console using RUST_LOG, defaulting to info.
try_init
Try to install a global console using RUST_LOG, defaulting to info.