Yeah, with streams you can fork, filter, redirect them. Actually I was
thinking you could just drop in a Zend log writer class and specify it in
just a few lines of code, the whole idea of these
libraries is that components like that are really easy to use on a
standalone basis. 

The shutdown function is used for object destructors, so something to watch
for 
when using class libraries, or should I say something to exploit to yr
advantage?

class MyLogger extends Zend_Log_Writer_Abstract
{
protected $_stream = null;

public function shutdown()
{
    if (is_resource($this->_stream)) {
        // do stuff
        fclose($this->_stream);
    }
}

}


=K=


On Wed, 17 Sep 2008 09:40:57 +1200, "Mark Rickerby" <[EMAIL PROTECTED]>
wrote:
> 
> Thanks, that looks like an interesting way to implement this... I'll
> check it out.
> 
> 

--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---

Reply via email to