| Crates.io | cu-logmon |
| lib.rs | cu-logmon |
| version | 0.12.0 |
| created_at | 2026-01-14 19:33:01.725522+00 |
| updated_at | 2026-01-14 19:33:01.725522+00 |
| description | Lightweight Copper monitor that emits periodic stats over the standard Copper logging macros. |
| homepage | https://github.com/copper-project |
| repository | https://github.com/copper-project/copper-rs |
| max_upload_size | |
| id | 2043548 |
| size | 61,548 |
Compact Copper monitor that emits a one-line statistical snapshot every second via the normal debug! / info! macros.
It is designed to work both on std targets and in bare-metal builds that route logging through defmt.
[dependencies]
cu-logmon = { version = "*", default-features = true } # disable default-features for no_std
In copperconfig.ron:
monitor: (
type: "cu_logmon::CuLogMon",
)
For bare-metal targets, disable default features and enable defmt:
cu-logmon = { version = "*", default-features = false, features = ["defmt"] }
Run the built-in demo (std targets):
cargo run -p cu-logmon --example demo
It simulates a 3-task pipeline at ~10 Hz and prints a one-line stat report every second.
There is also a minimal source->task->sink Copper app wired to CuLogMon:
cargo run -p cu-logmon --example copper_app
The runtime uses copperconfig.ron in this crate and logs to logs/logmon_copper_app.copper.