mageprince/module-log-viewer

Magento 2 Log Viewer Extension

1.0.0 2025-07-18 17:04 UTC

This package is auto-updated.

Last update: 2025-07-18 17:08:07 UTC


README

Mageprince Log Viewer is a powerful admin utility that allows you to manage, monitor, and debug log files directly from the Magento Admin Panel — without needing to access the server or filesystem.

✅ Compatibility

Magento Open Source: 2.3.x - 2.4.x
Adobe Commerce (on-prem): 2.3.x - 2.4.x
Adobe Commerce (cloud): 2.3.x - 2.4.x

✨ Key Features

  • View Magento log files (var/log/) directly in the admin panel
  • Display latest log lines with “Load Previous” functionality
  • Search log files by filename
  • Sort logs by filename, or last updated time
  • Download or delete log files from admin
  • Pagination support for large log directories
  • Admin configuration for:
    • Enable/disable the extension
    • Set number of log lines to show
    • Set how many log files to list per page
    • Define default sort column and direction
    • Restrict allowed file types
    • Allow or restrict file deletion
    • Allow or restrict file download

🚀 Installation Instructions

1. Install via composer (Recommended)

Run the following Magento CLI commands:

composer require mageprince/module-log-viewer
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy

2. Manual Installation

Copy the content of the repo to the Magento 2 app/code/Mageprince/LogViewer

Run the following Magento CLI commands:

php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy

🤝 Contribution

Want to contribute to this extension? The quickest way is to open a pull request on GitHub.

🛠 Support

If you encounter any problems or bugs, please open an issue on GitHub.

📸 Screenshots

1-log-list 2-log-view 3-admin-config