CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
LogFileConfig Struct Reference

#include <logfile.h>

Data Fields

int rotateMode
 Rotation mode from LOG_ROTATE_MODE enum.
 
uint32 flags
 
int64 rotateSize
 Size threshold for LOG_RotateSize mode (bytes)
 
uint8 rotateHour
 Hour for LOG_RotateTime mode (0-23)
 
uint8 rotateMinute
 Minute for LOG_RotateTime mode (0-59)
 
uint8 rotateSecond
 Second for LOG_RotateTime mode (0-59)
 
int rotateKeepFiles
 Minimum number of rotated files to keep (0 = unlimited)
 
int64 rotateKeepTime
 Minimum time to keep rotated files (0 = no time limit)
 

Detailed Description

Configuration for file-based logging

Controls rotation behavior and retention policies. Output formatting belongs to the serializer the file is created with, not here.

Definition at line 53 of file logfile.h.

Field Documentation

◆ flags

uint32 LogFileConfig::flags

Bitwise OR of LOG_FLAGS values; only LOG_LocalTime is consulted, to decide which day a time-based rotation belongs to

Definition at line 56 of file logfile.h.


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