RestApiLogger (optional)
https://github.com/magesuite/rest-api-logger
The module logs payload of rest api requests and their responses.
Installation
This module is optional.
composer require "creativestyle/magesuite-rest-api-logger" ^1.0.0
Admin setting
The module can be configured in Stores -> Configuration -> Advanced -> System
Rest API Payload Logger settings:
Field | Option | Comment |
---|---|---|
Rest API logging enabled | Yes/No
| If set to "Yes" module will log REST API payloads into database. |
Maximum Payload Length | Default: 65000 |
|
Payload Placeholders | password:******* | New line separated list of placeholders. Example: |
Rest Response logging enabled | Yes/No | If set to "Yes" module will log REST endpoint response into database. |
Response Placeholders |
| New line separated list of placeholders. Example: |
HTTP request methods to log | GET/POST/PUT/DELETE |
|
Rest endpoint to log |
| New line separated list of endpoints which payloads will be logged to database. |
Rest endpoint to skip |
| New line separated list of endpoints which payloads will be skipped from logging. |
Logging retention period |
| How long (in days) logs should be kept |
Log table optimization enabled | Yes/No | If set to 'Yes' then log table will be optimized after cleanup. |
In System -> Data Transfer -> Rest Api Logger
an admin user can find logged API requests:
Backend
Documentation in progress
Frontend
There are no frontend functionalities in the module.