Magento Log to custom file

+2 votes
97 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 510 views
0 votes
3 answers 530 views
0 votes
1 answer 428 views
+2 votes
1 answer 331 views
0 votes
0 answers 227 views
0 votes
1 answer 328 views
...