#[no_mangle]
pub unsafe extern "C" fn initialize_logger()
Expand description

Initialize logger according to RUST_LOG env var (exists behind ‘logs’ feature)

export RUST_LOG=vs=trace
export RUST_LOG=vs=debug
export RUST_LOG=vs=info
export RUST_LOG=vs=warn
export RUST_LOG=vs=error

Feature to enable it:

cargo build --features "logs"
use voluntary_servitude::ffi::*;
unsafe { initialize_logger() }