magento Default logging


Example

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.

Mage::logException($e);

This will log exception trace string to /var/log/exception.log