apprentice (77) [Avatar] Offline
#1
Table C.3 Priorities for Zend_Log log() messages

Bad
[pre]
Zend_Log::EMERGE
[/pre]

Good
[pre]
Zend_Log::EMERG
[/pre]

http://framework.zend.com/manual/en/zend.log.html#zend.log.overview.builtin-priorities




Example code

C:Websitesakrabatapplicationviewsscriptsindexedit.phtml
[pre]
<?php <br />
$writer = new Zend_Log_Writer_Stream('../var/logs/zf_log.txt'); // Websites/akrabat/var/logs/
$logger = new Zend_Log($writer);
$logger->log('message to yoda', Zend_Log::EMERG);

?>
[/pre]