mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-27 00:25:50 +03:00
[GH-ISSUE #1898] Adding postParams in ERROR notice for HTTP 405 code #815
Labels
No labels
Bug
Documentation
Feature
Needs Work
Support
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/monolog#815
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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?
@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.