Magento Log to custom file

+2 votes
88 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 361 views
0 votes
3 answers 399 views
0 votes
1 answer 365 views
+2 votes
1 answer 292 views
0 votes
0 answers 207 views
0 votes
1 answer 260 views
...