The Home for Magento 2 Excellence

Quality-tested Magento 2 modules. Explore. Evaluate. Elevate. #magento2

748 Modules
502 Ready
242 Need Help
🏆 Leaderboard
Actively Maintained v1.0.1

Orangecat ViewLog

orangecat/viewlog

Logs GraphQL and REST API requests with detailed capture of parameters, responses, and execution times. Includes admin grids for viewing logs and configurable auto-cleanup via cron.

18
Downloads
Below average
1
GitHub Stars
Below average
2mo ago
Last Release
0
Open Issues
Build Passing
Ready to install

Build Tests

Composer Install
DI Compile
Templates

Code Quality

CS Coding Standard
6 errors , 213 warnings
L1 PHPStan

Tested on Magento 2.4.8-p4

Recent Test History

Each release is tested against the latest Magento version at that time.

v1.0.1 on Magento 2.4.8-p4
Mar 21, 2026

Share This Module's Status

Orangecat ViewLog Magento compatibility status badge

README

Loaded from GitHub

Orangecat ViewLog Module

This module provides logging capabilities for GraphQL and REST API requests in Magento 2. It allows administrators to view detailed logs of API interactions, including request parameters, responses, and status codes.

Features

  • GraphQL Logging: Captures GraphQL queries, variables, responses, and execution times.
  • REST Logging: Captures REST API endpoints, request data, responses, and execution times.
  • Admin Interface: dedicated grids to view and filter logs.
  • Auto-Cleanup: Configurable retention period with automatic pruning via cron.

Installation

Install via composer:

composer require orangecat/viewlog
php bin/magento module:enable Orangecat_ViewLog
php bin/magento setup:upgrade

Configuration

Configuration is available under Stores > Configuration > Services > Magento Web API.

Graphql Logger Settings

  • Enable Graphql Logger: Turn GraphQL logging on/off.
  • Retention Days (Graphql): Number of days to keep logs before automatic deletion (Default: 30 days).

REST Logger Settings

  • Enable REST Logger: Turn REST logging on/off.
  • Retention Days (REST): Number of days to keep logs before automatic deletion (Default: 30 days).

Access

You can access the log viewers from the Admin Panel:

  1. GraphQL Logs: System > Tools > Graphql Logs
  2. REST Logs: System > Tools > REST Logs

Cron Jobs

The module includes a cron job that runs daily at 03:00 AM to clean up logs older than the configured retention period.

  • orangecat_graphqlviewlog_cleanup: Executes Orangecat\ViewLog\Cron\Cleanup::execute

Database Tables

  • orangecat_graphql_log: Stores GraphQL request logs.
  • orangecat_rest_log: Stores REST API request logs.

This content is fetched directly from the module's GitHub repository. We are not the authors of this content and take no responsibility for its accuracy, completeness, or any consequences arising from its use.