Crates.io | glore |
lib.rs | glore |
version | 0.1.4 |
source | src |
created_at | 2019-08-05 23:10:55.260108 |
updated_at | 2020-01-11 18:18:17.841683 |
description | Rust log |
homepage | |
repository | https://github.com/sigmaSd/Glore |
max_upload_size | |
id | 154417 |
size | 5,384 |
HowTo:
1- Use glore::GLORE
at the root of your project
2- Add a log target with glore::init($target)
$target
is anything that impl Write
3- log!
example of usage:
use glore::{init, log, GLORE};
let f = std::fs::OpenOptions::new()
.append(true)
.open("log.txt")
.unwrap();
let stdout = std::io::stdout();
init(stdout);
log!("hello ====");
log!("world");
init(f);
log!("hello ====");
std::thread::spawn(|| {
log!("world");
})
.join();
Important