[GH-ISSUE #1943] BufferHandler to allow change of wrapped handler in runtime #837

Closed
opened 2026-03-04 03:01:14 +03:00 by kerem · 1 comment
Owner

Originally created by @A-Shevchenko on GitHub (Feb 6, 2025).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/1943

Hello,

it would be really good to allow change of wrapped handler by BufferHandler after it's instantiation.
Our use case - we want to buffer logs until execution end, however in some cases we want to change underlying handler based on some conditions in application logic and do not lose what was logged so far.

Originally created by @A-Shevchenko on GitHub (Feb 6, 2025). Original GitHub issue: https://github.com/Seldaek/monolog/issues/1943 Hello, it would be really good to allow change of wrapped handler by BufferHandler after it's instantiation. Our use case - we want to buffer logs until execution end, however in some cases we want to change underlying handler based on some conditions in application logic and do not lose what was logged so far.
kerem 2026-03-04 03:01:14 +03:00
  • closed this issue
  • added the
    Feature
    label
Author
Owner

@Seldaek commented on GitHub (Mar 15, 2025):

Fixed by #1946

<!-- gh-comment-id:2726551813 --> @Seldaek commented on GitHub (Mar 15, 2025): Fixed by #1946
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#837
No description provided.