https://github.com/phpro/phpro-mage2-module-api-logger
https://github.com/phpro/phpro-mage2-module-api-logger
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/phpro/phpro-mage2-module-api-logger
- Owner: phpro
- License: mit
- Created: 2020-06-26T17:16:20.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2025-07-10T15:08:35.000Z (12 months ago)
- Last Synced: 2025-09-19T13:29:35.392Z (9 months ago)
- Language: PHP
- Size: 21.5 KB
- Stars: 2
- Watchers: 3
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README

# Extension 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`