A logger that stores entries in memory, allowing late and sporadic consumption.
- Two flavors: blocking and asynchronous.
- Optional target matching using Regex.
- Simple design, few dependencies, very fast to compile.
- No unsafe code.
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.