cloudflexdev / module-logs-management
A module for Magento 2 that allows you to view Magento logs in the admin panel.
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 1
Open Issues: 0
Type:magento2-module
Requires
- php: ^8.1
- magento/framework: 103.0.*
- magento/module-backend: 102.0.*
README
Overview
This Magento 2 module allows administrators to view system logs directly from the admin panel without needing to access the server manually. It is especially useful when you don’t have access to specialized tools for log monitoring and want to quickly troubleshoot issues.
The module lets you configure the number of log file lines to display, starting from the most recent entries, providing a simple and efficient way to review your system logs.
Compatibility
This module is compatible with Magento 2.4.4 or later.
Features
- View system logs directly from the Magento admin panel.
- Configure number of lines to display from the most recent log entries.
- No need to manually access the server or use specialized logging tools.
- Supports standard Magento logs (e.g.,
system.log
,exception.log
) or even custom log files.
Installation
Composer Installation
-
Navigate to the root directory of your Magento 2 installation.
-
Run the following command to install the module via Composer:
composer require cloudflexdev/module-logs-management
-
After the installation, enable the module and clear caches:
bin/magento module:enable Cloudflex_LogsManagement bin/magento setup:upgrade bin/magento cache:clean
Configuration
To configure the module:
- Log in to the Magento admin panel.
- Navigate to Stores > Configuration > Advanced > System > Logs Management.
- Set the number of lines to be displayed for each log file (default: 5000 lines).
⚠️ Important: Do not set too high a number of lines, as this may cause performance problems.
Usage
Once the module is installed and configured:
- In the Magento admin panel, go to System > Tools > Log Management.
- Choose the log file you wish to view from the available options (e.g.,
system.log
,exception.log
). - The module will display the most recent log entries based on the configured number of lines.
Support
If you encounter any issues or need help, please open an issue on the GitHub repository: GitHub Issues.
License
This module is licensed under the MIT License.