1
0
Fork 0
forked from wry/wry

Add clean-logs-older-than option

This commit is contained in:
khyperia 2026-03-27 07:44:34 +01:00 committed by Julian Orth
parent 4c7d108e09
commit 880c98ecfb
17 changed files with 360 additions and 10 deletions

View file

@ -2680,6 +2680,19 @@ Config:
```toml
log-level = "debug"
```
clean-logs-older-than:
ref: CleanLogsOlderThan
required: false
description: |
If specified on startup, deletes Jay's log files older than the specified time period.
Possible keys in the table are `days` and `weeks`.
- Example:
```toml
clean-logs-older-than.days = 7
```
theme:
ref: Theme
required: false
@ -3218,6 +3231,31 @@ GracePeriod:
required: false
CleanLogsOlderThan:
kind: table
description: |
The definition of how old logfiles need to be for them to be automatically deleted.
Omitted values are set to 0. At least one of `weeks` or `days` must be specified.
- Example:
```toml
clean-logs-older-than.weeks = 2
```
fields:
weeks:
description: The number of weeks.
kind: number
minimum: 0
required: false
days:
description: The number of days.
kind: number
minimum: 0
required: false
RepeatRate:
kind: table
description: |