To get started logging, instantiate a Writer and then pass it to a Log instance:
<?php
$logger = new Zend_Log();
$writer = new Zend_Log_Writer_Stream('php://output');
$logger->addWriter($writer);
It is important to note that the Log must
have at least one Writer. You can add any number of Writers using the
Log's addWriter() method.
Alternatively, you can pass a Writer directly to constructor of Log as a shortcut:
<?php
$writer = new Zend_Log_Writer_Stream('php://output');
$logger = new Zend_Log($writer);
The Log is now ready to use.




