diff --git a/src/logging_setup.rs b/src/logging_setup.rs new file mode 100644 index 0000000..c14ab4e --- /dev/null +++ b/src/logging_setup.rs @@ -0,0 +1,10 @@ +// Central place to initialize logging across tests and binary. +use std::sync::Once; + +static INIT: Once = Once::new(); + +pub fn setup() { + INIT.call_once(|| { + env_logger::init(); + }); +}