Function init_for_tests

pub fn init_for_tests()
Expand description

Initialize a logging environment suitable for testing. Logging can be configured using the RUST_LOG env variable, using a syntax that more-or-less matches the env_logger behavior. See build_targets_from_env for the exact behavior. If not so configured, the filter will default to the Level::Error level.