graycore / magento2-graphql-logger
Installs: 2 115
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 2
Forks: 1
Open Issues: 0
Type:magento2-module
Requires
- php: >=7.4
- magento/framework: *
- magento/module-graph-ql: ^100.0.0
Requires (Dev)
- magento/magento-coding-standard: >=6.0
- phpunit/phpunit: ^8.0 || ^9.0
- squizlabs/php_codesniffer: ^3.0
This package is auto-updated.
Last update: 2025-04-11 17:29:58 UTC
README
This module logs unique GraphQl queries for development purposes.
Caution
If your frontend development teams are unscrupulous this package will generate a PII issue for you. We append full query body data into the logs. This means that developers who fail to use variables in their queries and instead embed them directly in the query will cause your logs to be pull of various kinds of data that you don't want to log (potentially PII and credit card data). This uses the same interface as New Relic (which means New Relic and any other configured loggers) will ALSO get this data. You should only install this in development environments. You have been warned.
Getting Started
This module is intended to be installed with composer. From the root of your Magento 2 project:
- Download the package
composer require graycore/magento2-graphql-logger
- Enable the package
./bin/magento module:enable Graycore_GraphQlLogger
Usage
This module is disabled by default. It can be enabled through system configuration: Services -> Magento Web API -> GraphQl Logger -> Enable Logger.
Logs can be found in graycore_graphql_log
in the database.