承接 hipay/module-log-viewer 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hipay/module-log-viewer

Composer 安装命令:

composer require hipay/module-log-viewer

包简介

Real-time log viewer for Magento 2

README 文档

README

Magento 2 PHP

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

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

🎯 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

Via Composer

composer require hipay/module-log-viewer
php bin/magento module:enable HiPay_LogViewer
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento cache:flush

Configuration

Access Control

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

  1. Navigate to System > User Roles
  2. Select the role you want to configure
  3. In Role Resources, expand HiPay > Log Viewer
  4. Check Access Log Viewer
  5. Save the role

Usage

Accessing the Log Viewer

  1. Log in to Magento Admin Panel
  2. Navigate to System > Logs > Log Viewer
  3. The log viewer interface will load with the latest 100 log entries

Basic Operations

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

  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

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

Clear Display

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

Use Cases

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

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

Requirements

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

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

HiPay

  • Module: hipay/module-log-viewer
  • Version: 1.0.0

hipay/module-log-viewer 适用场景与选型建议

hipay/module-log-viewer 是一款 基于 HTML 开发的 Composer 扩展包,目前已累计 99 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 03 月 16 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 hipay/module-log-viewer 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 hipay/module-log-viewer 我们能提供哪些服务?
定制开发 / 二次开发

基于 hipay/module-log-viewer 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 99
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 23
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: HTML

其他信息

  • 授权协议: Unknown
  • 更新时间: 2026-03-16