mpacklog — Log dictionaries to file using MessagePack  v2.1.0
mpacklog Namespace Reference

Log action and observation dictionaries to MessagePack binary files. More...

Namespaces

 mpacklog
 

Classes

struct  CircularBuffer
 
class  Logger
 Multi-threaded logger. More...
 

Variables

constexpr size_t kBufferSize = 1024
 Number of slots in the internal circular buffer. More...
 

Detailed Description

Log action and observation dictionaries to MessagePack binary files.

Variable Documentation

◆ kBufferSize

constexpr size_t mpacklog::kBufferSize = 1024
constexpr

Number of slots in the internal circular buffer.

The buffer copes with variability in the rate of writing to the output file. The circular buffer stores values in RAM when the writing rate drops and empties when the writing rate again exceeds the input rate. Yes, the input rate has to be lower than the writing rate. There's no way around that ;)

Definition at line 48 of file Logger.h.