Skip to content

Implement circular logging for user actions and access #23

@techmore

Description

@techmore

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions