Skip to content

Convenience wrapper around bunt for leveled logging.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

mirryi/bunt-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Convenience wrapper around bunt for leveled logging.

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Languages