#logging #info #fatal #error #warn #trying #anywhere

log4rust

A logging system for rust that is trying to be as easy as possiable to impliment

7 releases

0.1.6 Feb 3, 2023
0.1.5 Feb 3, 2023
0.1.4 Sep 16, 2022

#6 in #trying

24 downloads per month

MIT license

15KB
277 lines

Log4rust

A logging system for rust that is trying to be as easy as possibale to impliment

Example

fn main() {
    log4rust::new().save().unwrap();
    // this could be in a new thread or anywhere in your code
    info!("This is some info");
    warn!("This is a warning");
    error!("This is an error");
    fatal!("This is something fatal");
}

You can also look in the exmaples folder to see how to do some other things

Crate: https://crates.io/crates/log4rust
Docs: https://docs.rs/log4rust


lib.rs:

Loggerz is a logging system that is made to be as easy as possiable!
Look in config to see how to customize the logger.

Example

fn main() {
    log4rust::new().save().unwrap();
    // this could be in a new thread or anywhere in your code
    info!("This is some info");
    warn!("This is a warning");
    error!("This is an error");
    fatal!("This is something fatal");
}

Dependencies

~3–13MB
~137K SLoC