|
Voyant API 0.2.1
|
#include <cstdarg>#include <cstdint>#include <cstdlib>#include <ostream>#include <new>Go to the source code of this file.
Functions | |
| void | voyant_log_init_c () |
| Initialize Voyant logging system from C/C++. | |
| void voyant_log_init_c | ( | ) |
Initialize Voyant logging system from C/C++.
This function initializes the Rust logging system for use in C/C++ applications. It sets up logging to stderr with INFO level as default, but respects the RUST_LOG environment variable for custom configuration.
The logging system supports multiple levels:
RUST_LOG=trace - Enable trace level logging (most verbose)RUST_LOG=debug - Enable debug level loggingRUST_LOG=info - Enable info level logging (default)RUST_LOG=warn - Enable warning level logging onlyRUST_LOG=error - Enable error level logging onlyRUST_LOG=off - Disable all logging