memory_logger

Crates.iomemory_logger
lib.rsmemory_logger
version0.1.1
sourcesrc
created_at2020-06-17 20:51:25.92061
updated_at2020-06-17 21:02:53.63283
descriptionA logger that buffers messages in memory, allowing arbitrary flushes
homepage
repositoryhttps://github.com/gahag/memory_logger
max_upload_size
id255053
size12,712
gahag (gahag)

documentation

README

Memory Logger

A logger that stores entries in memory, allowing late and sporadic consumption.

Cargo Documentation

Features

  • Two flavors: blocking and asynchronous.
  • Optional target matching using Regex.
  • Simple design, few dependencies, very fast to compile.
  • No unsafe code.

Blocking

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).

Asynchronous

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.

Simplicity

Memory logger aims to be a simple logging mechanism. There are no plans to implement advanced features.

Licence

memory_logger is licenced under the MIT Licence.

Commit count: 6

cargo fmt