Skip to content

sigmaSd/Glore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Glore

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

Important

  • This crate uses unsafe (to modify global log)

Releases

No releases published

Packages

No packages published

Languages