ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
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 log/mmap.h.

Field Documentation

◆ log_path

const char* log_mmap_config::log_path

Path to log file (required)

Definition at line 57 of file log/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 log/mmap.h.

Referenced by log_mmap_init().


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