RotateLogger

default is 32 days of logs configure if needed otherwise.
This commit is contained in:
SpudGunMan
2024-11-24 19:52:25 -08:00
parent cf45bb5060
commit 24dff868ff
4 changed files with 7 additions and 2 deletions

View File

@@ -14,6 +14,8 @@ Logging messages to disk or 'Syslog' to disk uses the python native logging func
LogMessagesToFile = False
# Logging of system messages to file, needed for reporting engine
SyslogToFile = True
# Number of log files to keep in days, 0 to keep all
log_backup_count = 32
```
To change the stdout (what you see on the console) logging level (default is DEBUG) see the following example, line is in [../modules/log.py](../modules/log.py)