+2 votes
1.2k views
in Magento by
edited
How can we log the data to a custom file in Magento please? Have anyone tried this on Mage 1.9v?

1 Answer

0 votes
by
You can do this simply by the following piece of code

<?php Mage::log('Your Log Message', Zend_Log::INFO, 'your_log_file.log'); ?>

Related questions

0 votes
1 answer 2.5k views
asked Feb 14, 2017 in Magento by Toms
+1 vote
2 answers 9.2k views
asked Jan 30, 2018 in Frameworks by Doumeki (480 points)
0 votes
3 answers 3.3k views
0 votes
1 answer 7.4k views
+2 votes
1 answer 1.6k views
0 votes
0 answers 1.0k views
...