slog-json-concur

Crates.ioslog-json-concur
lib.rsslog-json-concur
version0.1.0
sourcesrc
created_at2022-07-17 17:09:25.971187
updated_at2022-07-17 17:09:25.971187
descriptionJSON drain for slog-rs with concurrency
homepagehttps://github.com/matszpk/slog-json-concur
repositoryhttps://github.com/matszpk/slog-json-concur
max_upload_size
id627314
size48,792
Mateusz Szpakowski (matszpk)

documentation

https://docs.rs/slog-json-concur

README

slog-json-concur

Crate version Docs

A simple fork of the slog-json 2.6.1 (original version by Dawid Ciężarkiewicz) crate which introduces a buffering and concurrency while generating output of a log record.

An original drain requires mutex before using. This fork introduces a buffering before final write and it uses a mutex only on same final write, making same logging as concurrent and parallel.

Original slog-json: https://crates.io/crates/slog-json, https://github.com/slog-rs/json.

Commit count: 13

cargo fmt