How to implement an efficient logging system in a Rust-based ICP canister without relying on heartbeat?

You should check out this