Another noob question. I need to only have console statements appear if I use
RUST_LOG=debug ./main
when running a program
I have
-- main.rs
------ sub1.rs
------ sub2.rs
In my main.rs I have
#[macro_use]
extern crate log;
and it works fine
If I use debug!("Debug message") here there is no problem
However, in sub1.rs I use debug! and get an error of
error: cannot find macro debug
in this scope
Is there a preamble of some sort I need in sub1.rs like
use log::{info, warn,debug}
which doesn't work.