PHPackages                             orangecat/viewlog - 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. orangecat/viewlog

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

orangecat/viewlog
=================

Orangecat ViewLog Module

1.0.1(6mo ago)1571OSL-3.0PHPPHP ^8.1

Since Feb 3Pushed 6mo agoCompare

[ Source](https://github.com/olivertar/m2_viewlog)[ Packagist](https://packagist.org/packages/orangecat/viewlog)[ RSS](/packages/orangecat-viewlog/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Orangecat ViewLog Module
========================

[](#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
--------

[](#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
------------

[](#installation)

Install via composer:

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

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

[](#configuration)

Configuration is available under **Stores &gt; Configuration &gt; Services &gt; Magento Web API**.

### Graphql Logger Settings

[](#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

[](#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
------

[](#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
---------

[](#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
---------------

[](#database-tables)

- `orangecat_graphql_log`: Stores GraphQL request logs.
- `orangecat_rest_log`: Stores REST API request logs.

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance66

Regular maintenance activity

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

196d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/959440?v=4)[Oliverio Gombert](/maintainers/olivertar)[@olivertar](https://github.com/olivertar)

---

Top Contributors

[![olivertar](https://avatars.githubusercontent.com/u/959440?v=4)](https://github.com/olivertar "olivertar (2 commits)")

### Embed Badge

![Health badge](/badges/orangecat-viewlog/health.svg)

```
[![Health](https://phpackages.com/badges/orangecat-viewlog/health.svg)](https://phpackages.com/packages/orangecat-viewlog)
```

###  Alternatives

[psr/log

Common interface for logging libraries

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

API for OpenTelemetry PHP.

2044.7M351](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2430.8M434](/packages/open-telemetry-sdk)

PHPackages © 2026

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