[GH-ISSUE #1898] Adding postParams in ERROR notice for HTTP 405 code #815

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

Originally created by @sdespont on GitHub (Jun 23, 2024).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/1898

Monolog version 3

Hello, I use HtmlFormatter to receive logs by email.

In the case of an ERROR notification for an HTTP 405 error code, there is no postParams data provided, but postParams are present in the next INFO notification if present for a deprecated notification.

How can I include postParams directly in the ERROR notification?

Originally created by @sdespont on GitHub (Jun 23, 2024). Original GitHub issue: https://github.com/Seldaek/monolog/issues/1898 Monolog version 3 Hello, I use HtmlFormatter to receive logs by email. In the case of an ERROR notification for an HTTP 405 error code, there is no postParams data provided, but postParams are present in the next INFO notification if present for a deprecated notification. How can I include postParams directly in the ERROR notification?
kerem 2026-03-04 03:00:55 +03:00
  • closed this issue
  • added the
    Support
    label
Author
Owner

@Seldaek commented on GitHub (Jun 28, 2024):

The best way to do email logging IMO is to combine it with a FingersCrossedHandler => BufferHandler => MailerHandler. That way you get the full request logs in the email, not just the ERROR.

<!-- gh-comment-id:2196480543 --> @Seldaek commented on GitHub (Jun 28, 2024): The best way to do email logging IMO is to combine it with a FingersCrossedHandler => BufferHandler => MailerHandler. That way you get the full request logs in the email, not just the ERROR.
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#815
No description provided.