Skip to content

[Feature] Persist system metrics to log file#64

Merged
rbardaji merged 3 commits intomainfrom
feat/63-metrics-log-to-file
Mar 27, 2025
Merged

[Feature] Persist system metrics to log file#64
rbardaji merged 3 commits intomainfrom
feat/63-metrics-log-to-file

Conversation

@rbardaji
Copy link
Copy Markdown
Collaborator

This PR implements issue #63 by configuring the logging system to persist
metrics from record_system_metrics() into a rotating file logs/metrics.log.

Changes included:

  • Replaced logging.basicConfig with RotatingFileHandler setup
  • Created a logs/ directory if it does not exist
  • Logs are now written both to stdout and to logs/metrics.log
  • Log file rotates at 5MB, keeping 3 backups
  • Updated docker-compose.yml to mount the logs folder for persistence

✅ Closes

Closes #63

@rbardaji rbardaji merged commit fd22f0c into main Mar 27, 2025
6 checks passed
@rbardaji rbardaji deleted the feat/63-metrics-log-to-file branch March 27, 2025 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Persist record_system_metrics logs to file

1 participant