PHPackages                             mmustafaydogan/module-log-viewer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. mmustafaydogan/module-log-viewer

ActiveMagento2-module[Logging &amp; Monitoring](/categories/logging)

mmustafaydogan/module-log-viewer
================================

Real-time log viewer for Magento 2

11311HTML

Since Oct 7Pushed 8mo agoCompare

[ Source](https://github.com/mmustafaAydogan/module-log-viewer)[ Packagist](https://packagist.org/packages/mmustafaydogan/module-log-viewer)[ RSS](/packages/mmustafaydogan-module-log-viewer/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Magento 2 Log Viewer
====================

[](#magento-2-log-viewer)

[![Magento 2](https://camo.githubusercontent.com/360e2de1fd9c704bed173bb02c7cd39ec1713f893d985460f9493be3e29b4e0f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d6167656e746f2d322e342e782d6f72616e67652e737667)](https://magento.com/)[![PHP](https://camo.githubusercontent.com/e0d956970e898b245777e25eebc28d8f2f58ba384d9b9500dffb39850d8ad4d6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e31253230253743253230382e32253230253743253230382e332d626c75652e737667)](https://php.net/)

Real-time log monitoring and analysis tool for Magento 2 admin panel.

Overview
--------

[](#overview)

In enterprise environments, comprehensive log analysis and monitoring solutions like **New Relic**, **Datadog**, **Splunk**, **ELK Stack (Elasticsearch, Logstash, Kibana)**, and **Sentry** are essential for tracking application performance, errors, and system health. These powerful platforms provide deep insights, real-time alerting, and advanced analytics capabilities. However, there are many real-world cases where access to such tools is limited, delayed, or entirely unavailable — especially during urgent debugging or in cost-sensitive environments.

**Magento 2 Log Viewer** bridges this gap by providing a lightweight, built-in solution for real-time log monitoring directly within the Magento admin panel. While it doesn't replace comprehensive monitoring platforms, it serves as an invaluable complementary tool for immediate log analysis and debugging.

Features
--------

[](#features)

### 🎯 Core Capabilities

[](#-core-capabilities)

- **Real-time Log Streaming** - View log updates as they happen with auto-refresh functionality
- **Multiple Log File Support** - Switch between different Magento log files (system.log, exception.log, debug.log, etc.)
- **Customizable Refresh Intervals** - Choose from 5 seconds to 5 minutes for auto-refresh
- **Error Filtering** - Focus on critical issues with error-only view mode
- **Adjustable Line Limits** - Display 50 to 500 lines for optimal performance
- **Auto-scroll to Bottom** - Always see the latest log entries first
- **Manual Refresh** - Update logs on-demand with a single click
- **Clear Display** - Clean the log view without affecting actual log files

Installation
------------

[](#installation)

### Via Composer

[](#via-composer)

```
composer require mmustafaydogan/module-log-viewer:dev-main
php bin/magento module:enable Mustafa_LogViewer
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento cache:flush

```

Configuration
-------------

[](#configuration)

### Access Control

[](#access-control)

The module respects Magento's ACL (Access Control List) system. To grant access:

1. Navigate to **System &gt; User Roles**
2. Select the role you want to configure
3. In Role Resources, expand **Mustafa** &gt; **Log Viewer**
4. Check **Access Log Viewer**
5. Save the role

Usage
-----

[](#usage)

### Accessing the Log Viewer

[](#accessing-the-log-viewer)

1. Log in to Magento Admin Panel
2. Navigate to **System &gt; Tools &gt; Log Viewer**
3. The log viewer interface will load with the latest 100 log entries

### Basic Operations

[](#basic-operations)

#### Viewing Logs

[](#viewing-logs)

- Select desired log file from **Log File** dropdown
- Adjust number of lines with **Lines** dropdown (50, 100, 200, 500)
- Click **Refresh** button to manually update the display

#### Auto-Refresh Mode

[](#auto-refresh-mode)

1. Select refresh interval from **Auto Refresh Time** dropdown:

    - 5 seconds (real-time monitoring)
    - 15 seconds (balanced)
    - 30 seconds (moderate)
    - 1 minute (light monitoring)
    - 5 minutes (periodic checks)
2. Click **Auto Refresh: OFF** button to enable
3. Button changes to **Auto Refresh: ON** with primary color
4. Logs will update automatically at the selected interval
5. Change refresh interval on-the-fly without stopping auto-refresh
6. Click **Auto Refresh: ON** to disable automatic updates

#### Error-Only Mode

[](#error-only-mode)

- Check **Errors Only** checkbox to filter:
    - ERROR level logs
    - CRITICAL level logs
    - Exceptions
    - Fatal errors

#### Clear Display

[](#clear-display)

- Click **Clear Display** to remove current view
- Note: This only clears the interface, not the actual log files

### Use Cases

[](#use-cases)

#### Development Debugging

[](#development-debugging)

```
Scenario: Testing a new payment integration
1. Enable Auto Refresh (5 seconds)
2. Check "Errors Only"
3. Perform test transaction
4. Watch for real-time errors or exceptions

```

#### Production Monitoring

[](#production-monitoring)

```
Scenario: Monitoring critical operation during deployment
1. Select system.log
2. Set refresh to 15 seconds
3. Enable Auto Refresh
4. Monitor for any unexpected errors

```

Comparison with Enterprise Solutions
------------------------------------

[](#comparison-with-enterprise-solutions)

FeatureLog ViewerNew RelicDatadogSplunkELK StackReal-time Monitoring✅✅✅✅✅Historical Analysis❌✅✅✅✅Alerting❌✅✅✅✅Log Aggregation❌✅✅✅✅Custom Dashboards❌✅✅✅✅APM Integration❌✅✅✅✅CostFree$$$$$$$$$$$$Setup ComplexityLowMediumMediumHighHighAdmin Panel Access✅❌❌❌❌No External Dependency✅❌❌❌❌Immediate Availability✅❌❌❌❌Requirements
------------

[](#requirements)

- Magento 2.4.x or higher
- PHP 8.1, 8.2, or 8.3
- Read permissions on `var/log/` directory
- Admin panel access with appropriate ACL permissions

Compatibility
-------------

[](#compatibility)

- ✅ Magento Open Source 2.4.x
- ✅ Adobe Commerce 2.4.x
- ✅ Cloud Edition (with proper file system access)
- ✅ Multi-store setups
- ✅ Production, Staging, and Development modes

Author
------

[](#author)

**Mustafa.Aydoğan**

- Module: mmustafaydogan/module-log-viewer
- Version: 1.0.0

Acknowledgments
---------------

[](#acknowledgments)

\--

This module is designed for convenience and immediate access, not as a replacement for proper enterprise monitoring solutions. For production environments, always maintain comprehensive logging infrastructure with tools like New Relic, Datadog, or ELK Stack, and use this module as a supplementary debugging tool.

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance42

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/8d67842daeed29c70d6d515569c38e07c7cecd7aa97147dc9de50fff52e20bd5?d=identicon)[mmustafaAydogan](/maintainers/mmustafaAydogan)

---

Top Contributors

[![MustafaAydogann](https://avatars.githubusercontent.com/u/108256958?v=4)](https://github.com/MustafaAydogann "MustafaAydogann (4 commits)")[![mmustafaAydogan](https://avatars.githubusercontent.com/u/101430583?v=4)](https://github.com/mmustafaAydogan "mmustafaAydogan (2 commits)")

### Embed Badge

![Health badge](/badges/mmustafaydogan-module-log-viewer/health.svg)

```
[![Health](https://phpackages.com/badges/mmustafaydogan-module-log-viewer/health.svg)](https://phpackages.com/packages/mmustafaydogan-module-log-viewer)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B10.8k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1938.5M261](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2326.5M315](/packages/open-telemetry-sdk)[illuminated/console-logger

Logging and Notifications for Laravel Console Commands.

8676.7k](/packages/illuminated-console-logger)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
