Expand description
§tracing-fancytree
a tracing-subscriber layer that prints very pretty and understandable trees, with symbols and colors
§usage
add the tracing
, tracing-subscriber
, and tracing-fancytree
crates to Cargo.toml
fn main() {
{
use {
::std::io::IsTerminal,
::tracing_subscriber::layer::{Layer, SubscriberExt},
};
let out = ::std::io::stdout();
let use_ansi = out.is_terminal();
let use_symbols = out.is_terminal();
::tracing::subscriber::set_global_default(
::tracing_subscriber::registry().with(
::tracing_fancytree::FancyTree::new(out, use_ansi, use_symbols),
),
)
.unwrap();
}
// ...
}
Structs§
- Fancy
Tree - print fancy tracing trees