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.
composer require phpro/mage2-module-api-logger
By default, both requests and response will be written to api_logger.log
The logging can be disabled by changing the log level.
We can configure the log file under the store settings according the following path:
system/api_log/log_level