| Crates.io | tracing-fancytree |
| lib.rs | tracing-fancytree |
| version | 0.1.0 |
| created_at | 2025-01-20 00:20:43.719126+00 |
| updated_at | 2025-01-20 00:20:43.719126+00 |
| description | tracing subscriber with readable tree output |
| homepage | |
| repository | https://codeberg.org/0x57e11a/tracing-fancytree |
| max_upload_size | |
| id | 1523358 |
| size | 611,312 |
a tracing-subscriber layer that prints very pretty and understandable trees, with symbols and colors

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();
}
// ...
}