Crates.io | file-per-thread-logger |
lib.rs | file-per-thread-logger |
version | 0.2.0 |
source | src |
created_at | 2018-07-30 17:09:34.053923 |
updated_at | 2023-06-02 08:14:42.993422 |
description | A logging implementation that writes logs in one file per thread |
homepage | |
repository | https://github.com/bnjbvr/file-per-thread-logger |
max_upload_size | |
id | 76679 |
size | 32,553 |
This is a thread-safe logger that will write logs to files, each thread owning its own file.
Put this in your Cargo.toml
:
[dependencies]
file-per-thread-logger = "0.1.2"
Then add this to your code, once per thread:
file_per_thread_logger::initialize("file_prefix-");
Then each use of log
's primitive will log into files named the following way: