Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Rustixir/diskfire
NonBlocking, Blazing fast disk based logger
https://github.com/Rustixir/diskfire
Last synced: about 1 month ago
JSON representation
NonBlocking, Blazing fast disk based logger
- Host: GitHub
- URL: https://github.com/Rustixir/diskfire
- Owner: Rustixir
- Created: 2022-05-02T15:16:28.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-05-02T15:33:42.000Z (over 2 years ago)
- Last Synced: 2024-08-02T05:23:19.708Z (4 months ago)
- Language: Rust
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-blazingly-fast - diskfire - NonBlocking, Blazing fast disk based logger (Rust)
README
# diskfire
NonBlocking, Blazing fast disk based logger# Example
```rust
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();
}
```