Web API Logger
onecode/web-api-logger
Monitors and logs all Magento 2 REST API requests and responses from the admin panel. Provides a grid view of API traffic for debugging and auditing API integrations.
Build Tests
Code Quality
Tested on Magento 2.4.8-p4
Recent Test History
Each release is tested against the latest Magento version at that time.
Top Contributors
View LeaderboardLooking for Contributors
Dependency injection compilation fails. Your contribution could help the entire Magento community!
Share This Module's Status
README
Loaded from GitHubMonitor the magento 2 API REQUEST you are getting
This extension is tracking the API request you are getting in your magento installation by user
1. How to install Onecode_WebApiLogger
There are 2 ways to install the application via composer(recommended) or Copy and paste
1.1 Install via composer
composer require onecode/web-api-logger
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
php bin/magento setup:di:compile
1.2 Copy and paste
If you don't want to install via composer, you can use this way.
- Download the latest version here
- Extract
master.zipfile toapp/code/Onecode/WebApiLogger; You should create a folder pathapp/code/Onecode/WebApiLoggerif not exist. - Require Onecode_Base before installation run the command
composer require onecode/baseor Download the latest. Extractmaster.zipfile toapp/code/Onecode/Base; You should create a folder pathapp/code/Onecode/Baseif not exist. - Go to Magento root folder and run upgrade command line to install
Onecode_WebApiLogger:
php bin/magento module:enable Onecode_WebApiLogger Onecoode_Base
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
Run compile if you have your application in Production Mode
php bin/magento setup:di:compile
2. Magento 2 WebApiLogger extension
2.1 Web API Logger
In this guide we will show you how to configure the extension and use it.
2.2 Web API Logger settings
Login to the Magento Admin, navigate to Store > Configuration > Onecode Extensions > Web API Logger
2.2.1 General
Enabled: Select Yes to activate the module and No to disable it.
Clean Up: Set the days you want to clear the log by database. Set 0 to disable it.
Accept all HTTP Method: Select Yes to save on logger all the request you are getting or No to select which request you want to monitor
Select HTTP Methods: Select which API methods do you want to monitor.
Select user you want to track: Select which users request do you want to monitor
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.