Hi,

I'm implementing a new feature where the goal is to support firePHP debug messages. When application uses Zend_Http_Client to make external requests that returns debug headers the Zend_Http_Client can log them (if has appropriate configuration) to a local instance of Zend_Log.

And here I have two problems:
1) I need an instance on Zend_Log in Zend_Http_Client, right now I solved the problem by implementing "setLogger()" 2) firePHP has different priority style, so I need to convert firePhp priorities to Zend_Log style. For now I have a local mapper implemented in Zend_Http_Client.

The problems I have are:
1) Using setLogger() doesn't seems to be conventional in Zend library, but I don't see any other possibility. Does anyone have any suggestion how this could be solved?

2) I feel like having priority conversion on Zend_Http_Client level is not appropriate, I thought that i could reuse "protected $_priorityStyles" from Zend_Log_Writer_Firebug but this still makes in some way http client depended on Zend_Log_Writer_Firebug. I'm not sure what is better. Do you have any better Idea, or suggestions?


Regards
Wojak


Reply via email to