Errors and Debugging - ReFirmLabs/binwalk GitHub Wiki
Error and debug messages are handled by the Rust env_logger crate, which allows users to control log levels via the RUST_LOG
environment variable.
All errors and debug information are printed to stderr
:
# Disable all log messages
RUST_LOG=off binwalk -Me file_name.bin
# Only display status updates (every 30 seconds)
RUST_LOG=binwalk/^Status binwalk -Me file_name.bin
# Only display log messages of 'info' priority or higher
RUST_LOG=info binwalk -Me file_name.bin
# Show all log messages
RUST_LOG=debug binwalk -Me file_name.bin
[!TIP] The
RUST_LOG
environment variable can specify much more fine-grained behavior than what is shown above.See the env_logger documentation for more detail.