Magento Log to custom file

+2 votes
113 views
asked Jun 13, 2016 in Magento by Arton
edited Jun 15, 2016
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
answered Jun 14, 2016 by Johne Cage
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 721 views
asked Feb 14, 2017 in Magento by Toms
0 votes
3 answers 675 views
0 votes
2 answers 580 views
+2 votes
1 answer 382 views
0 votes
0 answers 255 views
0 votes
1 answer 358 views
...