Update log retention period to 30 days in custom logger and add comment on log cleanup mechanism.

This commit is contained in:
2025-08-26 17:23:20 +03:00
parent fee22f8ad4
commit 61dd85035d
3 changed files with 75 additions and 1 deletions

View File

@@ -19,6 +19,6 @@ filename = f'{current_dir}/helper_bot_{today}.log'
logger.add(
filename,
rotation="00:00",
retention="5 days",
retention="30 days",
format="{time:YYYY-MM-DD at HH:mm:ss} | {level} | {name} | {line} | {message}",
)