add better logger

This commit is contained in:
mario
2025-04-22 19:13:49 +07:00
parent 20f9f9c6e1
commit dc3b9b3cbf
2 changed files with 27 additions and 20 deletions

View File

@@ -20,4 +20,6 @@ BATCH_SIZE = 10 # Process orders in batches
# Logging Configuration
LOG_LEVEL = 'INFO'
LOG_FILE = 'server.log'
LOG_FILE = 'server.log'
LOG_MAX_SIZE = 10 * 1024 * 1024 # 10 MB
LOG_BACKUP_COUNT = 5 # Keep 5 backup log files