-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Errors and Debugging
devttys0 edited this page Oct 18, 2024
·
4 revisions
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.