feat: Implement daily log rotation

- Add logging to monitor_agent.py to replace print statements.
- Configure TimedRotatingFileHandler to keep logs for the past 24 hours.
- Update .gitignore to exclude the new log file.
- Update PROGRESS.md to reflect the completion of the task.
This commit is contained in:
2025-08-21 12:15:36 -05:00
parent e119bc7194
commit f65b2d468d
3 changed files with 38 additions and 29 deletions

View File

@@ -68,8 +68,8 @@
## TODO
- [ ] Change baseline calculations to only use integers instead of floats.
- [ ] Add a log file that only keeps records for the past 24 hours.
- [x] Change baseline calculations to only use integers instead of floats.
- [x] Add a log file that only keeps records for the past 24 hours.
- [ ] Log all LLM responses to the console.
- [ ] Reduce alerts to only happen between 9am and 12am.
- [ ] Get hostnames of devices in Nmap scan.