https://github.com/edmondscommerce/magento-api-logger
A Magento module for logging Magento API calls
https://github.com/edmondscommerce/magento-api-logger
Last synced: 12 months ago
JSON representation
A Magento module for logging Magento API calls
- Host: GitHub
- URL: https://github.com/edmondscommerce/magento-api-logger
- Owner: edmondscommerce
- Created: 2016-10-28T11:43:12.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-31T16:35:19.000Z (over 9 years ago)
- Last Synced: 2025-02-28T13:08:37.541Z (over 1 year ago)
- Language: PHP
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Magento-API-Logger #
## By [Edmonds Commerce](https://www.edmondscommerce.co.uk) ##
A Magento module for logging Magento API calls.
### Installation ###
Copy app/ into the root Magento folder.
### Usage ###
Simply add your custom logging code to whichever API controller you're
interested in (we've added some basic logging to get you started).
```
app/code/community/EdmondsCommerce/LogApi/controllers/*
```
```php
public function indexAction()
{
// Your custom logging code here
$logger = Mage::helper('edmondscommerce_logapi/log');
$logger->log($this->getRequest()->getRawBody(), $logger::API_V2_SOAP);
// End
parent::indexAction();
}
```