I am a beginner with the Zend framework and want to do some logging to find errors.
I found an example in the Zend manual:
$logger = new Zend_Log();
$writer = new Zend_Log_Writer_Stream('php://output');
$logger->addWriter($writer);
I wonder where I can find the php://output-log file after it’s written? Is this a real path or is this just an example and I have to replace php://output with an other filename?
The output is typically used for command line interfaces and isn’t particularly useful when you are executing PHP via a webserver.
For debug purposes, you could consider using
error_logwhich will write to your the error log associated with your webserver.http://php.net/manual/en/function.error-log.php