Struct simplog::simplog::SimpleLogger [] [src]

pub struct SimpleLogger { /* fields omitted */ }

Methods

impl SimpleLogger
[src]

Initialize the SimpleLogger using the 'init()' function by passing it an Option<&str> that has 'None' or 'Some("log_level_str")', where 'log_level_str' is a &str with a valid log level, in any case. The string will be parsed and if valid set as the log level.

Example

#[macro_use]
extern crate log;

extern crate simplog;
use simplog::simplog::SimpleLogger;

fn main() {
    SimpleLogger::init(None);
    info!("Hello World!");
}

[src]

Trait Implementations

impl Log for SimpleLogger
[src]

[src]

Determines if a log message with the specified metadata would be logged. Read more

[src]

Logs the LogRecord. Read more

Auto Trait Implementations

impl Send for SimpleLogger

impl Sync for SimpleLogger