vladflonta / magento2-webapi-log
vladflonta/magento2-webapi-log
Logger for webapi REST requests.
Magento 2 WebAPI Logger (REST)
A Magento module for logging all REST API requests as text files in var/log/webapi_rest/ folder.
Installation steps
-
Get the module via composer
composer require "vladflonta/magento2-webapi-log":"~0"or via git
git clone https://github.com/vladflonta/magento2-webapi-log app/code/VladFlonta/WebApiLog -
Enable module
bin/magento module:enable VladFlonta_WebApiLog
bin/magento setup:upgrade
Usage
The modules logs requests to subfolders in the var/log/webapi_rest according to the REST route.
Example: var/log/webapi_rest/integration/admin/token/20181213_082324.log
Remark: Auth requests do not contain body / response to avoid a security breach.
License
This project is licensed under the Open Software License (OSL 3.0)
No changelog yet
The vendor hasn't published a changelog. Tagged releases appear in the Versions tab.
| Version | Stability | QA Status | Compatibility | Released |
|---|---|---|---|---|
| 1.0.1 | stable | Fail | Magento 2.4.7 Details | 2022-12-10 11:25:15 |
| 0.1.1 | stable | Not tested | Not yet tested Details | 2022-12-10 11:14:47 |
| 1.0.0 | stable | Not tested | Not yet tested Details | 2022-11-28 20:40:45 |
| 0.1.0 | stable | Not tested | Not yet tested Details | 2022-11-28 19:51:43 |
| 0.0.1 | stable | Not tested | Not yet tested Details | 2018-04-12 21:26:33 |
Requires 2
| Package | Constraint |
|---|---|
| magento/framework | ^103.0.4 |
| magento/module-webapi | >=100.0.2 |
Compatibility
Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.
Code Quality
Advisory checks against the module's source. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge. A phpcs finding can't make a module incompatible.
Static analysis
Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.
| Tool | Status | Findings | Summary |
|---|---|---|---|
| PHPCS | Fail | 11 | 2 errors, 9 warnings (ruleset: Magento2) — 2 auto-fixable with phpcbf |
| PHPMD | Warning | 11 | 11 rule violations (UnusedFormalParameter:3, NPathComplexity:2, MissingImport:2, ErrorControlOperator:1, CyclomaticComplexity:1) |
| Cpd | Pass | 0 | |
| Composer validate | Info | 2 | valid; 2 advisory notes (composer validate --strict) |
PHPStan
Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases.
Tests
Unit and integration suites, run for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.
Unit tests
| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | ||
| 2.4.8 | N/A | N/A | ||
| 2.4.9 | N/A | N/A |
Integration tests
| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | ||
| 2.4.8 | N/A | N/A | ||
| 2.4.9 | N/A | N/A |
Security
Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.
Turn an existing module into recurring revenue.
If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.