Skip to content

rsdump/rog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A rust logger for providing debugln!()

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages