10 releases

Uses new Rust 2021

0.1.9 Oct 22, 2021
0.1.8 May 28, 2019

#415 in Rust patterns

Download history 29/week @ 2022-08-09 14/week @ 2022-08-16 34/week @ 2022-08-23 13/week @ 2022-08-30 37/week @ 2022-09-06 28/week @ 2022-09-13 9/week @ 2022-09-20 20/week @ 2022-09-27 45/week @ 2022-10-04 14/week @ 2022-10-11 9/week @ 2022-10-18 20/week @ 2022-10-25 24/week @ 2022-11-01 27/week @ 2022-11-08 34/week @ 2022-11-15 13/week @ 2022-11-22

99 downloads per month

MIT license

3KB

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


lib.rs:

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

Example

rog::reg("main");
rog::debugln!("debug");
rog::println!("print");

No runtime deps