It would be helpful to improve logging functionality in the Rust part of Chipmunk since this part is really hard to debug using a debugger and since using normal logging function in Async world is missing the context of the log information.
To solve these problems, I'll suggest using the crate tracing for the following benefits:
It's designed for async scenarios, providing much more context for each log.
Tracing level can be controlled in build time, giving us the option to remove lower tracing levels completely in release builds.
Data from tracing can be used for more than normal logs with all the provided subscribers for telemetry and performance etc..
We can start with implementing it in the build CLI tool as a logging system to get a better feeling and some experience with it before implementing it in Chipmunk.
It would be helpful to improve logging functionality in the Rust part of Chipmunk since this part is really hard to debug using a debugger and since using normal logging function in Async world is missing the context of the log information.
To solve these problems, I'll suggest using the crate tracing for the following benefits: