bunt-logger 0.1.1

Convenient log macro wrappers around `bunt`.
Documentation
  • Coverage
  • 92.86%
    13 out of 14 items documented12 out of 13 items with examples
  • Size
  • Source code size: 26.46 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.63 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 18s Average build duration of successful builds.
  • all releases: 18s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • mirryi

bunt-logger

Build status Crates.io Docs.rs

bunt-logger is a convenience wrapper around bunt, a library for printing colored and formatted text to terminals. It provides logging macros resembling those of log and a configuration interface similar to stderrlog.

This crate provides similar-looking macros but is not a logging implementation for log!

use bunt_logger::{error, debug, ColorChoice, Level};

bunt_logger::with()
    .level(Level::Debug)
    .stderr(ColorChoice::Always);

let data = vec![0, 2, 4];
debug!("Current value: {[cyan]:?}", data);

let err = ...
error!("{$red}Oh no! Error: {[bold]}{/$}", err);

See the documentation.

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option. Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.