Mage::log('My log entry');
Mage::log('My log message: '.$myVariable);
Mage::log($myArray);
Mage::log($myObject);
This will log to /var/log/system.log
Objects and Arrays are automatically written via a print_r() directive. Watch out when using objects since these can get substantial in size.
...