๐ Access Log
October 2, 2025 ยท View on GitHub
โ Back to Documentation Index
๐ Overview
This guide explains the access log functionality in the Mail Archiver application, which enables logging and viewing of user activities within the system. This functionality is crucial for monitoring, security, and debugging purposes.
๐ What is Logged
The application logs various types of user activities, including:
- Login and Logout - Logging of login and logout operations
- Search Operations - Logging of email search requests within the system
- Email Opening - Logging when users open email content
- Email Downloading - Logging when users download emails
- Email Restoration - Logging when users restore archived emails
- Account Management - Logging of account-related actions
- Deletion Operations - Logging of deletion actions
๐ Action Types and Descriptions
The logged actions are categorized into the following types:
Login
- Description: Logs when a user logs into the system
- Details: Username, timestamp
Logout
- Description: Logs when a user logs out of the system
- Details: Username, timestamp
Search
- Description: Logs search requests within the email system
- Details: Username, timestamp, search parameters
Open
- Description: Logs when a user opens an email
- Details: Username, timestamp, email ID, sender, subject
Download
- Description: Logs when users download emails
- Details: Username, timestamp, email ID, sender, subject
Restore
- Description: Logs when users restore archived emails
- Details: Username, timestamp, email ID, sender, subject
Account
- Description: Logs account-related actions (creation, modification, etc.)
- Details: Username, timestamp, account ID
Deletion
- Description: Logs deletion operations on emails or other resources
- Details: Username, timestamp, affected resource
- Compliance Note: Deletion operations are logged for compliance auditing purposes
๐ Filter Options
The log page offers the following filter options:
- Date - Filter by date range (From-To)
- Username - Filter by specific user (Admin only)
- Action Type - Filter by specific action type
๐ฅ๏ธ Log Display
Logs are displayed in a table format with the following columns:
- Timestamp: Date and time of the action
- Username: Name of the involved user
- Type: Type of action with color coding
- Information: Additional details about the action
For mobile devices, logs are displayed in card format.
๐ Access Permissions
- Non-admin users: Can only view their own logs
- Admin users: Can view logs for all users and filter by user