Banish v1.2.1
v1.2.1
Changes
trace now emits via log
The trace attribute previously wrote directly to stderr with eprintln!. It now emits through the [log](https://docs.rs/log) facade using log::trace!, giving you full control over where the output goes and how it's formatted.
log is re-exported from banish directly, so no additional dependency is needed. To capture output, add a backend such as env_logger:
[dependencies]
env_logger = "0.11.9"fn main() {
env_logger::init();
// ...
}Then run with RUST_LOG=trace:
# bash / zsh
RUST_LOG=trace cargo run -q 2> trace.log
# PowerShell
$env:RUST_LOG="trace"; cargo run -q 2> trace.logUpgrading from v1.2.0
If you use #[trace] and were relying on stderr output, initialize a log backend as shown above. Everything else is unchanged.