W Itch wrote:
> 
> How do you put Zend_Log into bootstrap correctly?  This code works fine by
> itself:
> 
> 
> Websites\akrabat\*application*\views\scripts\index\*edit.phtml* - This
> works!
> 
> <?php
> 
> $writer = new Zend_Log_Writer_Stream('../var/logs/log.txt'); //
> Websites/akrabat/var/logs/
> $logger = new Zend_Log($writer);
> $logger->log('message to yoda', Zend_Log::EMERG);
> 
> ?>
> 
> 
> 
> 
> But when I try to move it into the bootstrap instead then things break on
> my
> web application.  What's the proper to way to accomplish this?
> Here's some example codes:
> And I'm aware that neither zf_log.txt and log.txt is used entirely
> everywhere in the examples.
> It's remnants of various testing they aren't the problem and I'm using *
> log.txt* only on my LIVE version.
> 
> 
> *Edit view page*
> http://pastebin.com/m62377a84
> 
> *Bootstrap file*
> http://pastebin.com/m763b14bd
> 
> 


What do you mean "it breaks?" Some more information would be helpful. I
always initialize my Logger inside the bootstrap so with a little more
information maybe I can get you going.
-- 
View this message in context: 
http://www.nabble.com/How-do-you-put-Zend_Log-into-bootstrap-correctly----2-tp25668735p25673761.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to