VLink  2.3.0
A high-performance communication middleware
vlink::LoggerBackend::Config结构体 参考final

Construction-time queue, file and formatting settings. 更多...

#include <logger_backend.h>

vlink::LoggerBackend::Config 的协作图:

Public 属性

std::string app_name
 Application name used by fixed-name rotation. 更多...
 
std::string log_path
 Base directory for generated log files. 更多...
 
size_t max_file_size {0}
 Rotation threshold in bytes; must be non-zero. 更多...
 
size_t max_files {0}
 Timestamp retention target, or fixed-name backups excluding the active file. 更多...
 
size_t queue_size {0}
 Dispatcher queue capacity; zero is clamped to one. 更多...
 
uint32_t flush_interval_ms {0}
 Periodic flush interval; zero flushes each record. 更多...
 
bool fixed_filename {false}
 Use <app>.log plus numeric backups when true. 更多...
 
bool append {false}
 Continue the active/latest file instead of starting a new file. 更多...
 
bool block_when_full {false}
 When true, block all producers; Error/Fatal are always protected. 更多...
 
bool use_utc {false}
 Format timestamps and filenames in UTC. 更多...
 

详细描述

Construction-time queue, file and formatting settings.

类成员变量说明

◆ app_name

std::string vlink::LoggerBackend::Config::app_name

Application name used by fixed-name rotation.

◆ append

bool vlink::LoggerBackend::Config::append {false}

Continue the active/latest file instead of starting a new file.

◆ block_when_full

bool vlink::LoggerBackend::Config::block_when_full {false}

When true, block all producers; Error/Fatal are always protected.

◆ fixed_filename

bool vlink::LoggerBackend::Config::fixed_filename {false}

Use <app>.log plus numeric backups when true.

◆ flush_interval_ms

uint32_t vlink::LoggerBackend::Config::flush_interval_ms {0}

Periodic flush interval; zero flushes each record.

◆ log_path

std::string vlink::LoggerBackend::Config::log_path

Base directory for generated log files.

◆ max_file_size

size_t vlink::LoggerBackend::Config::max_file_size {0}

Rotation threshold in bytes; must be non-zero.

◆ max_files

size_t vlink::LoggerBackend::Config::max_files {0}

Timestamp retention target, or fixed-name backups excluding the active file.

◆ queue_size

size_t vlink::LoggerBackend::Config::queue_size {0}

Dispatcher queue capacity; zero is clamped to one.

◆ use_utc

bool vlink::LoggerBackend::Config::use_utc {false}

Format timestamps and filenames in UTC.


该结构体的文档由以下文件生成: