ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
Video chat in your terminal
Loading...
Searching...
No Matches
log_mmap_config Struct Reference

Path and size limits for the memory-mapped log file. More...

#include <include/ascii-chat/log/mmap.h>

Data Fields

const char * log_path
size_t max_size

Detailed Description

Path and size limits for the memory-mapped log file.

Path and size limits for the memory-mapped log file

log_path is borrowed for initialization; max_size bounds the mapping and falls back to the default when zero. The logging subsystem uses these values while it creates the mapping.

Definition at line 56 of file mmap.h.

Field Documentation

◆ log_path

const char* log_mmap_config::log_path

Path to log file (required)

Definition at line 57 of file mmap.h.

Referenced by log_mmap_init().

◆ max_size

size_t log_mmap_config::max_size

Maximum file size (0 = default 4MB)

Definition at line 58 of file mmap.h.

Referenced by log_mmap_init().


The documentation for this struct was generated from the following file: