Here’s an example of it’s use:
1) Turn on your logging: Admin > Configuration > Developer > Log Settings > Enabled = Yes
2) Example code snippet where you might find this useful:
<?php
$response = curl_exec($ch);
//just an example of something - might use this in a custom payment or shipping module$response = curl_exec($ch);
Mage::log($responseBody);
?>
3) Watch your var/log/system.log and var/log/exception.log for raw information from this.
You may run into file permission errors, so you might need to set your folder permissions appropriately
Source : http://www.exploremagento.com/
No comments:
Post a Comment