-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
The application needs circular logging (log rotation) to track user actions and access events without log files growing indefinitely.
Requirements:
- Log user actions (scan initiations, parameter changes, etc.)
- Log access events (logins, page accesses, API calls)
- Implement circular logging to rotate logs when they reach a certain size or age
- Ensure logs are secure and don't contain sensitive information
Implementation details:
- Use Python's logging module with RotatingFileHandler or TimedRotatingFileHandler
- Configure log levels (INFO for actions, DEBUG for detailed access)
- Store logs in a dedicated logs/ directory
- Consider log format with timestamps, user info (if applicable), action type
Location: Add logging configuration and calls throughout and related modules.
Benefits:
- Better audit trail for security and debugging
- Prevent disk space issues from unlimited log growth
- Improved monitoring capabilities
Please implement circular logging for all user actions and access events in the application.
Metadata
Metadata
Assignees
Labels
No labels