Hello,
I'm currently trying to set the DEFMT_LOG
environment variable in the Windows Command Prompt (cmd) to enable different logging levels for my Rust application that uses defmt
. I'm encountering an issue where it appears that the environment variable isn't getting set properly, despite running the command in the same cmd session.
Here is what I have tried:
- I set the
DEFMT_LOG
environment variable using the commandset DEFMT_LOG=trace
. - I'm running my Rust application using
cargo run
in the same cmd session right after setting the environment variable.
Despite these steps, it doesn't appear that DEFMT_LOG
is being recognized by my application. The log output doesn't change to reflect the trace
level, and it seems to be stuck at the default error
level.
I am using the Defmt version 0.3.2
Despite all of these, I'm still facing this issue. I would really appreciate if anyone could help me troubleshoot what might be going wrong here.
Thank you in advance for your assistance.