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(3mo ago)1181OSL-3.0PHPPHP ^8.1

Since Feb 3Pushed 3mo agoCompare

[ Source](https://github.com/olivertar/m2_viewlog)[ Packagist](https://packagist.org/packages/orangecat/viewlog)[ RSS](/packages/orangecat-viewlog/feed)WikiDiscussions main Synced 1mo 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

38

—

LowBetter than 85% of packages

Maintenance80

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

104d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2b0424a2b27fcf1f5c4362f5ab7f4fc78b56dfffe4897c4fd8177623b50fb953?d=identicon)[olivertar](/maintainers/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.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[ekino/newrelic-bundle

Integrate New Relic into Symfony2

28111.2M8](/packages/ekino-newrelic-bundle)

PHPackages © 2026

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