Tutorial by Examples

Mage::log('My log entry', null, 'mylogfile.log'); This wil log to /var/log/mylogfile.log
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. ...

Page 1 of 1