Enable application logging with `RUST_LOG`.

Section: Common CLI crate recipes

Set log level through env

bash
bash
RUST_LOG=info cargo run
Explanation

Many Rust apps use environment-controlled logging during development.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Common CLI crate recipes
Use clap derive for argument parsing
Derive a parser struct for a CLI.
OpenIn sheetrustsame section
Return `Result` from main
Use anyhow for ergonomic CLI errors.
OpenIn sheetrustsame section
Add a crates.io dependency
Use a semantic version requirement.
Define package features
Declare named features in the manifest.
Minimal workspace root
Define workspace members from a root manifest.
Use a git dependency
Pin a crate directly from a Git repository.