Magento Log to custom file

+2 votes
69 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 38 views
0 votes
3 answers 173 views
0 votes
1 answer 166 views
+2 votes
1 answer 239 views
0 votes
0 answers 163 views
0 votes
1 answer 224 views
...