Magento API Logs
magento
Solution
for a controlled period of time you can manipulate your index.php like so:
put this code at the end of the index.php around the ::run call:
ob_start();
Mage::run($mageRunCode, $mageRunType);
if(preg_match('/api/', $_SERVER['REQUEST_URI'])) {
Mage::log('<<< request '.$_SERVER['REQUEST_METHOD'].': '.$_SERVER['REQUEST_URI'], null, 'api.log');
if($_SERVER['REQUEST_METHOD'] == 'POST') {
Mage::log('<<< '.file_get_contents('php://input'), null, 'api.log');
}
Mage::log('>>> '.ob_get_contents(), null, 'api.log');
}
ob_end_flush();
its quick and dirty but for adhoc debugging it works
Problem
Is there any way to turn on logging for API calls? We have a third party application that is having trouble working with our store and would like to get some debuggging info. ~I have searched bt found nothing. I'm using 1.7