How to get debug! to work in a sub process (child)

Another noob question. I need to only have console statements appear if I use
RUST_LOG=debug ./main
when running a program

I have

In my I have
extern crate log;
and it works fine

If I use debug!("Debug message") here there is no problem

However, in 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 like
use log::{info, warn,debug}
which doesn't work.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.