Thanks Peter you solved it!  I have full control over the syslog now. :-)

*Bootstrap*
http://pastebin.com/f788c3a29

*Edit view page*
http://pastebin.com/f5f45c31f





On Wed, Sep 30, 2009 at 8:05 AM, Peter Warnock <[email protected]>wrote:

> In your example, the logger follows the return, which will never execute.
>  The logger should be in a distinct _init method.
> Clean up the tabs and get rid of the backslashes.
>
> - pw
>
>
> On Tue, Sep 29, 2009 at 11:38 AM, W Itch <
> [email protected]> 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
>>
>>
>>
>

Reply via email to