Set log backup count from config

This commit is contained in:
Serene-Arc
2021-04-06 16:16:26 +10:00
committed by Ali Parlakci
parent 5fea34ffce
commit 6704cd1dc0
3 changed files with 8 additions and 7 deletions

View File

@@ -198,12 +198,15 @@ The logging output for each run of the BDFR will be saved to this directory in t
The `config.cfg` is the file that supplies the BDFR with the configuration to use. At the moment, the following keys **must** be included in the configuration file supplied.
- `backup_log_count`
- `client_id`
- `client_secret`
- `scopes`
All of these should not be modified unless you know what you're doing, as the default values will enable the BDFR to function just fine. A configuration is included in the BDFR when it is installed, and this will be placed in the configuration directory as the default.
Most of these values have to do with OAuth2 configuration and authorisation. The key `backup_log_count` however has to do with the log rollover. The logs in the configuration directory can be verbose and for long runs of the BDFR, can grow quite large. To combat this, the BDFR will overwrite previous logs. This value determines how many previous run logs will be kept. The default is 3, which means that the BDFR will keep at most three past logs plus the current one. Any runs past this will overwrite the oldest log file, called "rolling over". If you want more records of past runs, increase this number.
## Contributing
If you wish to contribute, see [Contributing](docs/CONTRIBUTING.md) for more information.