log('Emergency: system is unusable', Zend_Log::EMERG); $logger->log('Alert: action must be taken immediately', Zend_Log::ALERT); $logger->log('Critical: critical conditions', Zend_Log::CRIT); $logger->log('Error: error conditions', Zend_Log::ERR); $logger->log('Warning: warning conditions', Zend_Log::WARN); $logger->log('Notice: normal but significant condition', Zend_Log::NOTICE); $logger->log('Informational: informational messages', Zend_Log::INFO); $logger->log('Debug: debug messages', Zend_Log::DEBUG); $logger->log(array('$_SERVER',$_SERVER), Zend_Log::DEBUG); $logger->trace('Trace to here'); $table = array('Summary line for the table', array( array('Column 1', 'Column 2'), array('Row 1 c 1',' Row 1 c 2'), array('Row 2 c 1',' Row 2 c 2') ) ); $logger->table($table); } public function testerrorcontrollerAction() { require_once 'Zend/Exception.php'; throw new Zend_Exception('Test Exception'); } public function testlargemessageAction() { $message = array(); for ( $i=0 ; $i<300 ; $i++ ) { $message[] = 'This is message #' . $i; } $logger = Zend_Registry::get('logger'); $logger->log($message, Zend_Log::INFO); } }