I'm using Rust/wasm32, target=wasm32-unknown-unknown, running in Chrome.
Right now, I log to the console via console_log!(...) which is a macro that ends up calling web_sys::console::log_1(....).
I would like to develop a console_remote_log!(...) which does the following:
logs remotely via http POST
attach some type of cookie to the request
batches the logs, log the earliest of either: (1) 5 seconds since last log or (2) N kilobytes of log since last log
I suspect this is a problem that already had a well defined solution. What strategies / crates are people currently using ?