All Features
Security
UI/UX
System
Content
Business
Marketing
📊
Admin SettingsSystem
Activity Logs
Comprehensive audit trail for all user actions
Overview
Full audit logging system tracking user actions, system events, and data changes. Records IP addresses, user agents, and before/after values. Essential for compliance and debugging.
Design Considerations
UX patterns and visual design notes for this feature:
- •Timeline view makes logs scannable
- •Color-code action types (create=green, delete=red)
- •Expandable rows for detailed diff views
- •Filters are essential for large datasets
Key Benefits
What makes this feature stand out:
- ✓Complete audit trail
- ✓IP and user agent tracking
- ✓Before/after value comparison
- ✓Configurable retention period
Technical Note
ActivityLog::log() for generic logging. ActivityLogHelper has shortcuts like logLogin(), logLogout(). Old values and new values stored as JSON.
Helpers
ActivityLogHelperModels
ActivityLogDatabase Tables
activity_logConfiguration
Config Relationship Legend
⚙ DB overrides params.php🔗 DB related setting📋 DB stores value only
params.php Configuration
Config path: params['activityLog']
params['activityLog']['enabled'] => trueparams['activityLog']['logActions'] => ['login', 'logout', 'create', 'update', 'delete']params['activityLog']['excludeRoutes'] => ['site/captcha']Database Settings (system_setting table)
| Key | Type | Description | Relation |
|---|---|---|---|
activity_log_retention_days | number | Days to retain logs before cleanup | 📋 |
activity_log_anonymous_visits | boolean | Log anonymous visitor page views | 📋 |