Skip to content

Banish v1.2.1

Choose a tag to compare

@LoganFlaherty LoganFlaherty released this 09 Mar 00:41
· 62 commits to main since this release
743e2b3

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.log

Upgrading 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.