[−][src]Crate memory_logger
A logger that stores log entries in memory, allowing late consumption.
There are two mutually exclusive flavors, which can be selected through features:
- blocking: A single buffer is shared through a mutex, therefore operations may block.
- asynchronous: Entries are managed through a channel, therefore operations may never block.
One should not attempt to use both flavors simultaneously.
Features
blocking
: enables theblocking
module. Should not be used withasynchronous
.asynchronous
: enables theasynchronous
module. Should not be used withblocking
.target
: enables thetarget
regex parameter for both flavors, allowing filtering logs by target (module name).
Modules
asynchronous | |
blocking |