#simple #log #logging #logger #color

badlog

A simple, zero customization, colored logger

12 releases (3 stable)

Uses old Rust 2015

1.1.1 Jan 21, 2018
1.1.0 Jan 18, 2018
1.0.0 Nov 19, 2017
0.3.1 Nov 19, 2017
0.1.3 Feb 10, 2017

#49 in #simple

Download history 50/week @ 2021-02-14 20/week @ 2021-02-21 18/week @ 2021-02-28 9/week @ 2021-03-07 11/week @ 2021-03-14 48/week @ 2021-03-21 20/week @ 2021-03-28 24/week @ 2021-04-04 38/week @ 2021-04-11 57/week @ 2021-04-18 19/week @ 2021-04-25 14/week @ 2021-05-02 9/week @ 2021-05-09 22/week @ 2021-05-16 12/week @ 2021-05-23 16/week @ 2021-05-30

111 downloads per month
Used in 3 crates

MIT license

16KB
73 lines

badlog

Cargo Docs.rs

A garishly colored and extremely simple logger - the best kind.

Installation

[dependencies]
badlog = "1.1"
log = "0.4"

Usage

  1. Call one of the initializers.
  2. Use the standard log crate macros.
  3. That's it!

Example

#[macro_use] extern crate log;
extern crate badlog;

fn main() {
    badlog::init_from_env("LOG_LEVEL");

    trace!("Unimportant details.");
    debug!("Debugging information.");
    info!("Hello, World!");
    warn!("Uh, captain, I think we're going down...");
    error!("IT'S THE END.");
}

License

MIT.


lib.rs:

A ridiculously minimal and good-looking logger.

Dependencies

~2.5MB
~59K SLoC