feat: add configurable log rotation settings via environment variables

• Add LOG_DIR env var for log file location
• Add LOG_MAX_BYTES for max log file size
• Add LOG_BACKUP_COUNT for backup count
This commit is contained in:
yangdx
2025-02-28 23:21:14 +08:00
parent 731d820bcc
commit aac1bdd9e6
3 changed files with 23 additions and 10 deletions

View File

@@ -23,6 +23,9 @@
### Logging level
# LOG_LEVEL=INFO
# VERBOSE=False
# LOG_DIR=/path/to/log/directory # Log file directory path, defaults to current working directory
# LOG_MAX_BYTES=10485760 # Log file max size in bytes, defaults to 10MB
# LOG_BACKUP_COUNT=5 # Number of backup files to keep, defaults to 5
### Max async calls for LLM
# MAX_ASYNC=4