Magento 2 API logger
phpro/mage2-module-api-logger
Logs all Magento 2 REST API requests and responses to a file. Useful for debugging and monitoring API integrations.
Build Tests
Code Quality
Tested on Magento 2.4.8-p3
Recent Test History
Each release is tested against the latest Magento version at that time.
Top Contributors
View LeaderboardShare This Module's Status
README
Loaded from GitHubExtension on Magento 2 API logger
This module extends the default Magento 2 Rest API logger and will log all requests. Both request and response will be logged. Useful for applications or services consuming the Magento Rest API.
Installation
composer require phpro/mage2-module-api-logger
How to use
By default, both requests and response will be written to api_logger.log
The logging can be disabled by changing the log level.
Configuration
We can configure the log file under the store settings according the following path:
system/api_log/log_level
This content is fetched directly from the module's GitHub repository. We are not the authors of this content and take no responsibility for its accuracy, completeness, or any consequences arising from its use.