[PR #5] [MERGED] Added a BufferHandler to allow batch processing of the records #869

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

📋 Pull Request Information

Original PR: https://github.com/Seldaek/monolog/pull/5
Author: @stof
Created: 4/5/2011
Status: Merged
Merged: 4/5/2011
Merged by: @Seldaek

Base: masterHead: buffer


📝 Commits (1)

  • b2d356b Added a BufferHandler to allow batch processing of the records

📊 Changes

4 files changed (+154 additions, -0 deletions)

View changed files

📝 src/Monolog/Handler/AbstractHandler.php (+7 -0)
src/Monolog/Handler/BufferHandler.php (+72 -0)
📝 src/Monolog/Handler/HandlerInterface.php (+8 -0)
tests/Monolog/Handler/BufferHandlerTest.php (+67 -0)

📄 Description

This is the first step before adding a MailHandler as it will allow to send only one mail when wrapping the MailHandler in a BufferHandler.
This handler is the equivalent of the GroupHandler of the LogBook library.


🔄 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/5 **Author:** [@stof](https://github.com/stof) **Created:** 4/5/2011 **Status:** ✅ Merged **Merged:** 4/5/2011 **Merged by:** [@Seldaek](https://github.com/Seldaek) **Base:** `master` ← **Head:** `buffer` --- ### 📝 Commits (1) - [`b2d356b`](https://github.com/Seldaek/monolog/commit/b2d356bbf25cc0129ce425196b741000c2cda113) Added a BufferHandler to allow batch processing of the records ### 📊 Changes **4 files changed** (+154 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/Monolog/Handler/AbstractHandler.php` (+7 -0) ➕ `src/Monolog/Handler/BufferHandler.php` (+72 -0) 📝 `src/Monolog/Handler/HandlerInterface.php` (+8 -0) ➕ `tests/Monolog/Handler/BufferHandlerTest.php` (+67 -0) </details> ### 📄 Description This is the first step before adding a MailHandler as it will allow to send only one mail when wrapping the MailHandler in a BufferHandler. This handler is the equivalent of the GroupHandler of the LogBook library. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 03:02:07 +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#869
No description provided.