Download the PHP package fsm/module-log-viewer without Composer
On this page you can find all versions of the php package fsm/module-log-viewer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fsm/module-log-viewer
More information about fsm/module-log-viewer
Files in fsm/module-log-viewer
Package module-log-viewer
Short Description Magento / Mage-OS admin Log Viewer with per-role glob patterns and download ACL.
License OSL-3.0 AFL-3.0
Homepage https://github.com/fabiano-mallmann/module-log-viewer
Informations about the package module-log-viewer
Fsm_LogViewer
Admin Log Viewer for Magento Open Source / Mage-OS. Lists and displays files under var/log with per-role glob patterns and optional download permission.
Features
- Grid of log files allowed for the current admin role
- Tail view (last 512 KB) with in-page search
- Download gated by ACL and role flag
- Role tab under System → Permissions → User Roles to configure patterns
Requirements
- PHP 8.2+
- Magento Open Source / Mage-OS 2.4+ (compatible with Magento Backend, User, Authorization, UI)
Installation
Composer (recommended for distribution)
App code
Copy this module to app/code/Fsm/LogViewer, then run the same module:enable / setup:upgrade commands.
Configuration
- Open System → Permissions → User Roles.
- Edit a role → Log Viewer tab.
-
Enter one glob pattern per line (basename under
var/log), for example: - Optionally enable Allow Download.
- Assign ACL resources under System → Tools → Log Viewer:
- View Logs — list and open files
- Download Logs — download (also requires the role flag)
Empty patterns mean the role sees no log files.
The Size column filter uses bytes (display is human-readable).
Security
Log files often contain personal data, stack traces, tokens, or other secrets.
- Prefer specific patterns (
system.log,exception.log) over*.log. - Grant Download only to roles that need full files.
- The module rejects path traversal, null bytes, and symlinks under
var/log. - Viewing still exposes file contents to anyone with View ACL and matching patterns — treat role setup as a security control.
To report vulnerabilities, see SECURITY.md.
ACL
| Resource | ID |
|---|---|
| Log Viewer | Fsm_LogViewer::logviewer |
| View Logs | Fsm_LogViewer::view |
| Download Logs | Fsm_LogViewer::download |
Development
Commit messages follow Conventional Commits.
Unit tests (standalone package)
Unit tests (from Magento root)
Coding standard
Coverage includes path/pattern safety, LogFileService (ACL, symlink, tail, download), repository, role-save plugin, listing DataProvider, role tab, and admin controllers.
Contributing
See CONTRIBUTING.md for setup, PR guidelines, and coding standards. Please follow the Code of Conduct.
Changelog
See CHANGELOG.md.
License
Open Software License (OSL 3.0) and Academic Free License (AFL 3.0). See LICENSE_AFL.txt.
All versions of module-log-viewer with dependencies
magento/framework Version *
magento/module-backend Version *
magento/module-user Version *
magento/module-authorization Version *
magento/module-ui Version *