Crates.io | memory_logger |
lib.rs | memory_logger |
version | 0.1.1 |
source | src |
created_at | 2020-06-17 20:51:25.92061 |
updated_at | 2020-06-17 21:02:53.63283 |
description | A logger that buffers messages in memory, allowing arbitrary flushes |
homepage | |
repository | https://github.com/gahag/memory_logger |
max_upload_size | |
id | 255053 |
size | 12,712 |
A logger that stores entries in memory, allowing late and sporadic consumption.
Both logging and reading use a mutex around a single buffer, and therefore may block. This should be good enough for most scenarios, and has a smaller memory overhead and better locality (single buffer).
Both logging and reading use a channel, and may never block. This should be faster for high contention scenarios, but has a higher memory overhead and worse locality.
Memory logger aims to be a simple logging mechanism. There are no plans to implement advanced features.
memory_logger
is licenced under the MIT Licence.