kairoi

Crates.iokairoi
lib.rskairoi
version0.2.3
created_at2025-10-03 17:42:39.957681+00
updated_at2025-10-06 09:31:17.201947+00
descriptionAnother application-level tracing library
homepage
repositoryhttps://github.com/sharp0802/kairoi
max_upload_size
id1867016
size40,138
Yeong-won Seo (Sharp0802)

documentation

README

kairoi

Rust

Kairoi is an application-level tracing library.

How to use?

Just use as println!:

info!("Hello, World!");
warn!("It's warning: {}", "blabla");

Or in a span (equivalent of Span in another logging libraries such as tracing):

Span::scope(async |scope: Scope| {
    let data = Span::default().with_name("Hello World".to_string());

    scope.update(data.with_progress(Progress::new(100, 0)));
    for i in 1..=100 {
        if i % 10 == 0 {
            info!("{}/100", i);
        }

        sleep(Duration::from_millis(50)).await;
        scope.update(data.with_progress(Progress::new(100, i)));
    }
})
.await;

More examples are at /examples

Commit count: 0

cargo fmt