PHPackages                             avenyra/module-graph-ql-logger - 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. [API Development](/categories/api)
4. /
5. avenyra/module-graph-ql-logger

ActiveMagento2-module[API Development](/categories/api)

avenyra/module-graph-ql-logger
==============================

A utility module to enable GraphQl request logs for Magento 2.

1.0.0(3mo ago)001proprietaryPHPPHP ^8.1 || ^8.2 || ^8.3

Since Feb 5Pushed 3mo agoCompare

[ Source](https://github.com/Avenyra/magento2-GraphQlLogger)[ Packagist](https://packagist.org/packages/avenyra/module-graph-ql-logger)[ RSS](/packages/avenyra-module-graph-ql-logger/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Avenyra GraphQl Logger
======================

[](#avenyra-graphql-logger)

Avenyra GraphQL Logger is a utility module for Magento 2 that logs incoming GraphQL requests. It is built for debugging headless storefronts, mobile apps, and third-party integrations without turning your logs into a liability.

Features
--------

[](#features)

- **Logs GraphQL request metadata**

    - Query
    - Variables
    - Request URL
- **Configurable redaction of sensitive data**

    - Variable keys
    - Query literal values
- **Optional cached GET logging** (disabled by default)
- **Authorization-based filtering**

    - Log only requests whose `Authorization` header matches configured tokens
    - Optional **force log** to capture those requests even when global logging is disabled
- **Lightweight and non-invasive**

    - Hooks into Magento’s GraphQL logger pool
    - Writes to a dedicated log file under `var/log`

Requirements
------------

[](#requirements)

- PHP 8.1+
- Magento 2.4.5+

Installation
------------

[](#installation)

### Via Composer (Recommended)

[](#via-composer-recommended)

```
composer require avenyra/module-graph-ql-logger
php bin/magento module:enable Avenyra_GraphQlLogger
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
php bin/magento cache:flush
```

### Log location

[](#log-location)

Logs are written to `var/log/graphql_queries.log` by default (relative to Magento BP).

### Security and privacy

[](#security-and-privacy)

The module attempts to minimize sensitive data in logs:

- Variables array is sanitized using the configurable redaction list (redacted values are replaced with `***REDACTED***`).

### Performance

[](#performance)

- Logging all GraphQL requests can generate heavy I/O on busy sites. Keep cached logging off unless needed.

### Notes

[](#notes)

This logger is intended as a developer and operations tool. If you enable logging in production, ensure you have a data retention and access policy that meets your compliance requirements (PCI, GDPR, etc.).

Support
-------

[](#support)

Found a bug or issue? Please [open an issue](https://github.com/Avenyra/magento2-GraphQlLogger/issues) on GitHub.

Author
------

[](#author)

**Avenyra Solutions**

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance82

Actively maintained with recent releases

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Unknown

Total

1

Last Release

97d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/43a0e0112388db576cfbb5301b005b99c6a4e913dc087793f9c1b460ca653acc?d=identicon)[Avenyra](/maintainers/Avenyra)

---

Top Contributors

[![Avenyra](https://avatars.githubusercontent.com/u/88397713?v=4)](https://github.com/Avenyra "Avenyra (5 commits)")

---

Tags

graphqlgraphql-loggerlog-utilitymagentomagento2magento2-extensionmagento2-extension-freemagento2-graphql-loggermagento2-module

### Embed Badge

![Health badge](/badges/avenyra-module-graph-ql-logger/health.svg)

```
[![Health](https://phpackages.com/badges/avenyra-module-graph-ql-logger/health.svg)](https://phpackages.com/packages/avenyra-module-graph-ql-logger)
```

###  Alternatives

[smile/elasticsuite

Magento 2 merchandising and search engine built on ElasticSearch

8044.5M33](/packages/smile-elasticsuite)[graycore/magento2-cors

A Magento 2 module that enables CORS on the GraphQL and REST Apis

99516.1k](/packages/graycore-magento2-cors)[elgentos/module-prismicio

Magento 2 - Prismic.io integration

39112.0k3](/packages/elgentos-module-prismicio)[zepgram/module-rest

Technical module to industrialize API REST call with dependency injection pattern using Guzzle library

1326.2k](/packages/zepgram-module-rest)[yireo/magento2-additional-endpoints-graph-ql

113.0k](/packages/yireo-magento2-additional-endpoints-graph-ql)

PHPackages © 2026

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