Crates.io | log4rust |
lib.rs | log4rust |
version | 0.1.6 |
source | src |
created_at | 2022-09-15 16:20:36.290931 |
updated_at | 2023-02-03 18:04:22.286496 |
description | A logging system for rust that is trying to be as easy as possiable to impliment |
homepage | |
repository | https://github.com/AMTitan/log4rust |
max_upload_size | |
id | 666807 |
size | 16,130 |
A logging system for rust that is trying to be as easy as possibale to impliment
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