Magento - How to log to a file

Mage::log(‘My log entry’, null, ‘mylogfile.log’);

Source

(Magento log files)[https://witsgroup.wordpress.com/2012/02/28/creation-of-magento-log-files-with-magelog/]