feat: Optional log rotation (#3016)

This PR adds an option to disable log rotation.
This commit is contained in:
Sergey Kuznetsov
2026-04-27 15:30:53 +01:00
committed by GitHub
parent 198773f86a
commit f1460de5d3
8 changed files with 224 additions and 17 deletions

View File

@@ -561,6 +561,14 @@ Documentation can be found at: <https://github.com/gabime/spdlog/wiki/Custom-for
- **Constraints**: The minimum value is `1`. The maximum value is `4294967295`.
- **Description**: The maximum number of log files in the directory.
### log.rotate
- **Required**: True
- **Type**: boolean
- **Default value**: `True`
- **Constraints**: None
- **Description**: Enables or disables log file rotation. When disabled, a single log file is used without size-based rotation. Useful when rotation is managed externally (e.g., via logrotate).
### log.tag_style
- **Required**: True