News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Chance Garcia's Blog:
Zend_log_exception 'bad log priority'
March 02, 2009 @ 10:27:26

Chance Garcia has posted about an exception he's come across several times in using the Zend_Log component of the Zend Framework but hasn't been able to figure out - until now (with the help of part of the Zend Framework manual).

There are a few times I've gotten this particular exception and then look at the trace and can't figure out what's wrong. More often than not, I'll get to the line in the trace and be like, "wtf! there's no priority here. It's a method call not a constant". [...] So to save myself and others some time and aggrevation, I'm going to go into a bit of detail as to why you may be getting this exception.

As it turns out, the Zend_Log exception was caused by the components overloading of the __call function to allow for some custom handling. Chance sees this issues as an example of "flexibility leading to complications that require complex understanding".

1 comment voice your opinion now!
zendlog zendframework component bad priority exception


blog comments powered by Disqus

Similar Posts

Matt Frost: Mocking SoapClient

Zend Developer Zone: Zend Framework Gets An Unofficial PEAR Channel

Padraic Brady's Blog: Zend Framework: Surviving The Deep End Book - Chapters 4, 5, 6, 7 and Appendix

Jani Hartikainen's Blog: Zend Framework components as separate zips from the main distro? Sure!

Sankho Mallik's Blog: Tutorial: Using Zend_Captcha_Image


Community Events





Don't see your event here?
Let us know!


symfony podcast zendserver release introduction voicesoftheelephpant opinion install interview library community unittest deployment package language bugfix laravel series api framework

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework