Create log file
In developing magento module its necessary to know how to log the file.
If you want to log the variables in object, array and strings.
Refer the code below to log the variable.
Mage::log($myVariable, NULL, '[nameOfFile].log');
This log file will create in magento log folder i.e [magento_root_path]/var/log
No comments:
Post a Comment