[PR #331] [CLOSED] Created a SoapClient Processor #1084

Closed
opened 2026-03-04 03:04:51 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Seldaek/monolog/pull/331
Author: @garadox
Created: 3/6/2014
Status: Closed

Base: masterHead: master


📝 Commits (7)

  • 516603d Created a Processor to format and sanitize SOAP requests / responses
  • 05a8ed9 Added the SoapClient endpoint as a record 'extra' parameter
  • 1b4cb47 Added missing class constant
  • 13a25ef Defaulting Soap Request and Response to empty string
  • 12268b2 Changed how default extra fields are added to the record array.
  • 3ff6ca1 Added SoapClientProcessor Test
  • 496453c Completed class coverage

📊 Changes

2 files changed (+347 additions, -0 deletions)

View changed files

src/Monolog/Processor/SoapClientProcessor.php (+240 -0)
tests/Monolog/Processor/SoapClientProcessorTest.php (+107 -0)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Seldaek/monolog/pull/331 **Author:** [@garadox](https://github.com/garadox) **Created:** 3/6/2014 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (7) - [`516603d`](https://github.com/Seldaek/monolog/commit/516603d661dfbbd6c067a0f29c2cb3812c316856) Created a Processor to format and sanitize SOAP requests / responses - [`05a8ed9`](https://github.com/Seldaek/monolog/commit/05a8ed9ff20684a9edc8a80431686852fb4740b5) Added the SoapClient endpoint as a record 'extra' parameter - [`1b4cb47`](https://github.com/Seldaek/monolog/commit/1b4cb471fb83c585d8368ea5fec879f91a92af33) Added missing class constant - [`13a25ef`](https://github.com/Seldaek/monolog/commit/13a25ef1aae1ee324f14b123d312a992e530bd78) Defaulting Soap Request and Response to empty string - [`12268b2`](https://github.com/Seldaek/monolog/commit/12268b239c87bbbaee9f2a27e7279cce40d99f5d) Changed how default extra fields are added to the record array. - [`3ff6ca1`](https://github.com/Seldaek/monolog/commit/3ff6ca12a04cd9f6a5097698acc17b111e3a1ba0) Added SoapClientProcessor Test - [`496453c`](https://github.com/Seldaek/monolog/commit/496453cd307850947757fed016253915e81834b3) Completed class coverage ### 📊 Changes **2 files changed** (+347 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `src/Monolog/Processor/SoapClientProcessor.php` (+240 -0) ➕ `tests/Monolog/Processor/SoapClientProcessorTest.php` (+107 -0) </details> ### 📄 Description 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 03:04:51 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/monolog#1084
No description provided.