[][src]Crate rog

A Rust logger. Provides and only provides macro debugln!()

Example

This code runs with edition 2018
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(vec!["main"]);
    debugln!("Debug");
    println!("Print");
}

Macros

debugln

Debugs to the standard output, with a newline.

println

Prints to the standard output, with a newline.

Functions

cfg

Returns a hashset indicating which modules have been registered.

reg

Register a series of module names, the logs in this module will be printed.