v-log
A Rust library providing a lightweight visual logging/debugging facade.
A visual logging facade provides a single visual logging API that abstracts over the actual visual logging implementation. Libraries can use the visual logging API provided by this crate, and the consumer of those libraries can choose the visual logging implementation that is most suitable for its use case.
Minimum supported rustc
1.68.0+
This version is explicitly tested in CI and may be bumped in any release as needed. Maintaining compatibility with older compilers is a priority though, so the bar for bumping the minimum supported version is set very high. Any changes to the supported minimum version will be called out in the release notes.
Usage
In libraries
Libraries should link only to the v-log crate, and use the provided macros to
log whatever geometric information will be useful to downstream consumers:
[]
= "0.3"
use ;
In executables
In order to produce log output, executables have to use a vlogger implementation compatible with the facade. Currently the following implementations exist:
- web-vlog: renders in a webbrowser
Executables should choose a vlogger implementation and initialize it early in the runtime of the program. Vlogger implementations will typically include a function to do this. Any v-log messages generated before the vlogger is initialized will be ignored.
The executable itself may use the v-log crate to log geometry as well.