| Crates.io | kairoi |
| lib.rs | kairoi |
| version | 0.2.3 |
| created_at | 2025-10-03 17:42:39.957681+00 |
| updated_at | 2025-10-06 09:31:17.201947+00 |
| description | Another application-level tracing library |
| homepage | |
| repository | https://github.com/sharp0802/kairoi |
| max_upload_size | |
| id | 1867016 |
| size | 40,138 |
kairoiKairoi is an application-level tracing library.
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