rog

Crates.iorog
lib.rsrog
version0.1.9
sourcesrc
created_at2019-05-06 03:04:45.037213
updated_at2021-10-22 09:15:41.689389
descriptionA Rust logger
homepagehttps://github.com/rsdump/rog
repository
max_upload_size
id132321
size2,960
Mohanson (mohanson)

documentation

https://github.com/rsdump/rog/blob/master/README.md

README

rog

A Rust logger. Provides macro debugln!() and println!().

[dependencies]
rog = "0.1"

I am fed up with the days of downloading xx packages in order to print a line of logs. No third-party dependencies, no extra features, make rog simple and pure.

Example

use rog::{self, debugln};

fn main() {
    // Register the module name `main` to rog, so all debug logs under the main
    // module will be printed.
    rog::reg("main");
    debugln!("debug");
    println!("print");
}

You can run the above example with:

$ cargo run --example main

Licence

MIT

Commit count: 0

cargo fmt