Logs Manager for Magento® 2.x
The Logs Manager module efficiently manages the growing log files of your site. View and analyze your logs in the admin area. A feature of the module is uploading your logs to third-party cloud services such as Dropbox, Google Drive, Microsoft OneDrive, and others.
Magento® 2 does not provide tools for working with log files by default. Gradually, log files grow to large sizes, and sometimes huge sizes. It is very inconvenient to work with such files. Their analysis turns into a very complex process. To ensure that your log files are always of an acceptable size, use the Logs Manager extension.
Logs Manager allows you to specify the maximum size of each log file and the maximum number of archived copies of these files.
After activating the module, every day your log files will be checked and those files that are larger than the specified size will be archived. The module stores as many archive copies as you specify in the configuration of the Logs Manager module and removes obsolete archives. Thus, your log files will always be small and easy to read and analyze.
Viewing and analyzing logs from the admin panel is very convenient. You can configure access to them only for yourself or for certain admins. Search and filtering is carried out on all log files. It is possible to filter logs by date and time, type of error and simply by text search.
Another important feature of the Logs Manager for Magento2 module is working with cloud services. Each zipped log file can be automatically sent to a folder (preserving the structure) on your Dropbox or other cloud file storage service. This will allow you to free up space on your server for more important files. Support cloud storage: Dropbox, Google Drive, Microsoft OneDrive.
The Logs Manager module compresses log files into zip archives. Since logs contain frequently repeated lines or parts of lines, they lend themselves well to compression. For example, a 10MB file can be compressed to 0.5-1MB. Typically, the compression ratio is 70 to 90%.
|Compatibility||2.4, 2.3, 2.2, 2.1, 2.0|
Follow these steps to install the extension:
- Unpack the resulting archive to the root of your Magento site. As a result, you should have created such a folder [magento_root]/app/code/Extmag/LogsManager
- Run the following commands in the root of your Magento site:
- composer require spatie/flysystem-dropbox:^1.2
- composer require google/apiclient:^2.7
- composer require krizalys/onedrive-php-sdk:^2.5
- php bin/magento c:f
- php bin/magento s:up
- Log out and log back into the Magento admin interface
- Congratulations. The extension has been successfully installed.
Configure extension by this guide.
You can see all your logs on the log list page. Only a small part of the log data description is shown in the list. To see the full description, click on the short description and a popup with a full description will open.
To view the logs go to Admin main menu -> Extmag -> Logs Manager -> Logs
Filtering by logs
Logs are filtered by the following parameters:
- Date and time
- Channel (main or some module)
- By file name
- Search in the log description
- Log level (Error, Info, Warning, Critical, Debug, etc.)
If you use dropbox for keeping backups and get such a problem as shown on the screenshot below
you should set permissions as shown on the screenshots below
Fixed PHP warnings
Support Adobe Commerce (Magento) 2.4.5-p1
Support Adobe Commerce (Magento) 2.4.5
Added new dependency to the module composer.json
Added permissions to request authorization for Dropbox
Fixed bug with the core module
Added support for PHP 8.1 and Adobe Commerce (Magento) 2.4.4
Update versions of dependencies
Added the ability to download log files in zip format for local storage or transfer to developers of extensions to analyze errors and work of extensions
Show error with onedrive getting Authentication Code if this error exists
Added reports to log listing
Filter by reports
Compress reports folder and send archive to cloud storage
Added listing of logs in the admin panel with filtering by several parameters
Fixed bug with schedule and config cache
Refactoring PHP code
Fixed bug with uploading log files to Microsoft OneDrive
Fixed bug with empty client id
Fixed supporting Magento 2.3.5
Fixed bug with Microsoft OneDrive OAuth code
Added Microsoft OneDrive for keeping your log archives.
Admin has to create self Dropbox app.
Admin has to create self Google app.
Added Google Drive storage.
Fixed some small bugs.