bouquin

Crates.iobouquin
lib.rsbouquin
version0.1.1
sourcesrc
created_at2021-11-20 22:31:30.166163
updated_at2021-11-20 22:53:05.530398
descriptionAdds a few functions to log things with style.
homepage
repository
max_upload_size
id485093
size4,455
Matthieu JOLIMAITRE (MajorBarnulf)

documentation

README

Bouquin

Description

Adds a few functions to log things with style.

The focus of this library is on ease of use and modularity.

Disclaimer

Bouquin is intended to be used by small projects as a time saver and doesn't do much.

You might find better alternatives by searching a bit more.

Usage

use bouquin::prelude::*;

fn main () {
	log_info("lorem ipsum");
	log_warn("dolor amit");

	let a = 420;
	log_error(format!("caused by: '{}'", a));
}

Todo

For now, the crate doesn't do much, but plans are:

  • Add macros to define custom behavior for log calls.
  • Add configuration to write logs on disk in background and a way to avoid having one static Logger.
  • Implement a convenient way to add and organize channels (error / info / warn).
Commit count: 0

cargo fmt