承接 hryvinskyi/magento2-api-logger 相关项目开发

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

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

hryvinskyi/magento2-api-logger

最新稳定版本:1.0.3

Composer 安装命令:

composer require hryvinskyi/magento2-api-logger

包简介

Enterprise API logging solution with granular endpoint control, secret sanitization, and advanced viewer

README 文档

README

API logging solution for Magento 2 with granular endpoint control, secret sanitization, and advanced viewer.

Latest Stable Version Total Downloads PayPal donate button Latest Unstable Version License

Features

Installation

Install via Composer:

composer require hryvinskyi/magento2-api-logger
bin/magento module:enable Hryvinskyi_ApiLogger
bin/magento setup:upgrade
bin/magento cache:flush

Install via Manual Download:

  1. Download the module from GitHub
  2. Place it in app/code/Hryvinskyi/ApiLogger
  3. Run:
bin/magento module:enable Hryvinskyi_ApiLogger
bin/magento setup:upgrade
bin/magento cache:flush

Configuration

Navigate to Stores > Configuration > Hryvinskyi Extensions > API Logger

General Settings

  • Enable API Logging: Master on/off switch
  • Enabled Endpoints: Select which endpoints to log using the advanced selector
  • Log HTTP Methods: Choose which HTTP methods to log (GET, POST, etc.)
  • Log Request Headers: Include HTTP request headers
  • Log Request Body: Include request payload
  • Log Response Headers: Include HTTP response headers
  • Log Response Body: Include response payload

Security & Sanitization

  • Sanitize Sensitive Data: Enable automatic secret sanitization
  • Secret Field Names: Comma-separated list of field patterns to treat as secrets

Cleanup & Retention

  • Enable Automatic Cleanup: Run cron job to delete old logs
  • Retention Period: Days to keep logs (default: 30)

Usage

Viewing Logs

  1. Navigate to System -> Tools -> API Logger in admin menu
  2. Use grid filters to find specific logs:
    • Filter by endpoint, method, response code
    • Search by IP address, customer ID
    • Date range filtering
  3. Click "View Details" to see full request/response data

Managing Logs

  • View Details: Click on any log entry to see formatted JSON
  • Delete Single: Use delete action in grid or detail view
  • Mass Delete: Select multiple entries and use mass delete action

Author

Volodymyr Hryvinskyi

Support

For issues, feature requests, or questions, please contact the author or submit an issue on GitHub.

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-11-26