Magento - How to log to a file#

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

Source#