belog 0.1.0

A minimal and pretty log impplementation for the log crate.
Documentation
  • Coverage
  • 83.33%
    5 out of 6 items documented4 out of 4 items with examples
  • Size
  • Source code size: 44.92 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.19 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 13s Average build duration of successful builds.
  • all releases: 13s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Stupremee/belog
    5 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Stupremee

belog

Beautiful log is a minimal and pretty logging implementation for the log crate.

Preview

asciicast

Usage

Add this to your Cargo.toml:

[dependencies]
belog = "0.1.0"

Then you can use the log crate:

#[macro_use]
extern crate log;

fn main() {
	// Initializes the logger with the max_level set to info.
	belog::init();

	error!("something went wrong. pls fix");
	// this will print nothing, because debug is lower than info.
	debug!("debug info: {}", 1);
}

Enable colored output

To enable colored output, you have to enable the colored feature in the belog dependency.

[dependencies.blog]
version = "0.1.0"
features = ["colored"]

License

This project is licensed under the GPL v3 license.