Skip to content

quadrupleslap/badlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

28 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published

Languages