[][src]Crate glore

glore at log

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();

Macros

log

Use this macro log any argrument

Statics

GLORE

Use this static at the root of your project to enable logging

Functions

init

Use this function to add a log target