Created a SoapClient Processor#331
Created a SoapClient Processor#331garadox wants to merge 7 commits intoSeldaek:masterfrom tests-always-included:master
Conversation
(Will now be prsent in the array in all cases)
|
I don't understand the goal of this processor |
|
The goal is twofold:
|
|
The first case is not something which should be solved by a processor in the logger, but by a logger inside the SOAP client. A simple way to implement the logging of request and response is to extend the SoapClient as described in http://stackoverflow.com/a/1729614 |
|
Thanks for the pull request but I don't really feel like this is general purpose enough to warrant inclusion in monolog. @stof's feedback is also relevant in that a Processor might not really be the right way to do this, but it's probably technically working as is so feel free to keep this approach if you want in your project. I just don't see a need to include this in monolog. |
I had a need to log a formatted SOAP request and response with Monolog. For security purposes I also need to sanitize some elements of the request and response.
I created a Processor for the SoapClient, but due to the SoapClient not being available globally I'm expecting the variable in the context array of the record. This is the part I like the least - if you have a recommendation for making this better i'll implement it.