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.
This module is compatible with Magento 2.4.4 or later.
- 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.
-
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
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).
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.
If you encounter any issues or need help, please open an issue on the GitHub repository: GitHub Issues.
This module is licensed under the MIT License.