diskfire

Crates.iodiskfire
lib.rsdiskfire
version0.1.0
sourcesrc
created_at2022-05-02 15:34:17.050212
updated_at2022-05-02 15:34:17.050212
descriptionNonBlocking, Blazing fast disk based logger
homepagehttps://github.com/Rustixir/darkbird
repositoryhttps://github.com/Rustixir/darkbird
max_upload_size
id579176
size11,341
DanyalMh (Rustixir)

documentation

README

diskfire

NonBlocking, Blazing fast disk based logger

Example


fn main() {
    
    let path  = "loger";
    let buffer_size = 10_000;

    // Run
    let (jh, sender)  = FastLog::run(buffer_size, path);


    // NonBlcoknig Log
    let _ = sender.send(b"Record ....".to_vec());


    // copy
    let sender2 = sender.clone();


    // NonBlocking send from another thread
    std::thread::spawn(move || {
        let _ = sender2.send(b"Record ....".to_vec());
    });


    let _ = jh.join();

}
Commit count: 183

cargo fmt