tree-logger

Crates.iotree-logger
lib.rstree-logger
version0.2.0
created_at2025-04-12 22:45:48.664032+00
updated_at2025-07-30 19:47:12.529447+00
descriptionSimple yet feature-full logging and profile tool
homepagehttps://github.com/loremdipso/tree-scraper
repository
max_upload_size
id1631331
size61,821
Michael Adams (loremdipso)

documentation

README

tree-logger

Log and profile nested code. Supports multi-threading.

Basic usage

use tree_logger::{TreeLogger, profile};

TreeLogger::new()
    .with_colors(true)
    .with_threads(true)
    .init()
    .unwrap();

log::warn!("This is an example message.");
profile!("Some parent span", || {
    log::info!("Hello from inside the parent span!");
});

Caveats

Not much time has been put into making this as performant as it could be (yet!). It's a simple solution that makes a reasonable set of assumptions. If you think you could do better you're probably right :)

Commit count: 0

cargo fmt