search for: log_stream

Displaying 2 results from an estimated 2 matches for "log_stream".

Did you mean: lobjstream
2008 Jan 30
2
How do I get logging with rspec?
Say I''m testing a controller with rspec, and I have logger.debug and logger.error calls. Normally I''d like them to write to the appropriate file, but in this case I''d like to see the output on STDOUT. Is there an easy way to redirect logging in rspec to do this? I''m thinking that controller.should_receive(:logger).and_return(logger) should start it off,
2005 Mar 24
0
AGI commands STDOUT problem
...htdocs/ivsadmin/apps/pavoz/classes/AgiTest.php'; $agi = new AgiTest(); die(); ?> i guess the code before doesnt say anything :p , the class AgiTest code is: <?php class AgiTest { private $read_bytes = 80; private $asterisk_environment_variables = array(); private $log_stream = null; public function __construct() { $this->log_stream = fopen('/var/log/pavoz/asterisk','w'); //reading asterisk initial variables and writing them to log $this->ReceiveAsteriskEnvironmentVariables(); //now we try to execute a command, an...