This module logs incoming REST API requests and their corresponding responses, storing details like method, headers, URI, payload, status, and body. It provides a default view for accessing these logs and offers configuration options for automatic log cleanup and filtering by referrer.
This module logs REST API requests and responses - useful in development and troubleshooting REST API issues.
Out of the box it stores the following information:
- Request method
- Request header
- Request URI
- Request cookie
- Request payload
- Response status
- Response header
- Response body
- Response time
There is standard Drupal view with logs available at admin/reports/rest_log.(Reports > REST API Logging)
Configuration:
The module provides a configuration form at /admin/config/development/logging/rest_log.(Configuration > Development > Logging and errors > REST Log settings)
Additional features:
- Auto cleanup for logs older than the Maximum lifetime setting. (30 days by default)
- Include or exclude logs with the same-host referrer HTTP header.
Ask your assistant about REST Log
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
- file Drupal core
- rest Drupal core
- views Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.